title: Can I change the interval of the pitch shift while playing audio using tone.js?
body: <p>I'll show you my code</p>
  <pre><code>audio_music = new Audio();
  var track = audioContext.createMediaElementSource(audio_music);
  
  //Import music files from other sources into base64 form.
  audio_music.src = &quot;data:audio/ogg;base64,&quot;+ data.music;
  
  var splitter = audioContext.createChannelSplitter(6);
  var merger = audioContext.createChannelMerger(2);
  track.connect(splitter);
  
  //omitted in addition to 0 and 1 due to repetition of the similar content
  gainNode0 = audioContext.createGain(); gainNode0.gain.setValueAtTime((musicvolume*0.1), audioContext.currentTime);
  gainNode1 = audioContext.createGain(); gainNode1.gain.setValueAtTime((musicvolume*0.1), audioContext.currentTime);
  
  splitter.connect(gainNode0, 0);
  splitter.connect(gainNode1, 1);
  
  var pitchshift0 = new Tone.PitchShift(pitch);
  var pitchshift1 = new Tone.PitchShift(pitch);
  
  Tone.connect(gainNode0, pitchshift0);
  Tone.connect(gainNode1, pitchshift1);
  
  Tone.connect(pitchshift0, merger, 0, 0);
  Tone.connect(pitchshift1, merger, 0, 1);
  
  Tone.connect(merger, audioContext.destination);
  </code></pre>
  <p>I am not familiar with the use of audioContext and tone.js, so I don't know if I understand correctly, but my intention is to separate input sources with six channels and process them in the order of gain adjustment, pitch shift, and marge, respectively.</p>
  <p>This will do everything else, but you can't change the value of the pitch shift during playback.</p>
  <p>I want a way to function similar to the setValueAtTime used in GainNode in pitch shift.</p>
  <p>What should I do?</p>