chatGPT major scale

tell chatGPT: write a program in ditty to play a major scale

Log in to post a comment.

//
// write a program in ditty to play a major scale
//




ditty.bpm = 120;

loop( () => {

  // Play the notes of a major scale
  sine.play(c4, { attack: 0.01, release: 0.25,  duration: 0.25 });
  sleep(0.5);
  sine.play(d4, { attack: 0.01, release: 0.25,  duration: 0.25 });
  sleep(0.5);
  sine.play(e4, { attack: 0.01, release: 0.25,  duration: 0.25 });
  sleep(0.5);
  sine.play(f4, { attack: 0.01, release: 0.25,  duration: 0.25 });
  sleep(0.5);
  sine.play(g4, { attack: 0.01, release: 0.25,  duration: 0.25 });
  sleep(0.5);
  sine.play(a4, { attack: 0.01, release: 0.25,  duration: 0.25 });
  sleep(0.5);
  sine.play(b4, { attack: 0.01, release: 0.25,  duration: 0.25 });
  sleep(0.5);
  sine.play(c5, { attack: 0.01, release: 0.25,  duration: 0.25 });
  sleep(0.5);

}, { name: 'major scale' });