{
   "labels" : [
      "minor",
      "modes",
      "keys",
      "major",
      "mixolydian"
   ],
   "code" : "// MODES, SCALES, KEYS inside Pbinds\r\n\r\n// How to write Pbinds in a specific key, for example G minor\r\n// (using \\scale and \\degree inside Pbind)\r\n\r\n(\r\nPbind(\r\n\t\\scale, Scale.minor, // natural minor scale\r\n\t\\degree, Pseq([0, 1, 2, 3, 4, 5, 6s, 7, 8, 9, 10, 11]), // s for sharp, b for flats as needed\r\n\t\\root, 7, // 0 is C, 1 is C#, etc. For G minor, we put the root at 7 (seven semitones above C)\r\n\t\\dur, 1/2\r\n).play\r\n)\r\n\r\n// \\degree considers 0 to be the first scale degree.\r\n// If you prefer to think of 1 as the first scale degree (like in \"movable do\" solfege), simply add -1 to the end of the line.\r\n// The example below is in Eb Major\r\n(\r\nPbind(\r\n\t\\scale, Scale.major,\r\n\t\\degree, Pseq([1, 2, 3, 4, 5, 6, 7, 8]) - 1,\r\n\t\\root, 3, // Eb Major\r\n\t\\dur, 1/2\r\n).play\r\n)\r\n\r\n// F Mixolydian #4\r\n(\r\nPbind(\r\n\t\\scale, Scale.mixolydian,\r\n\t\\degree, Pseq([1, 2, 3, 4s, 5, 6, 7, 8], 3) - 1,\r\n\t\\root, 5, // F mixolydian with #4\r\n\t\\dur, 1/4\r\n).play\r\n)\r\n\r\nScale.directory;",
   "is_private" : null,
   "id" : "1-5iE",
   "author" : "Bruno Ruviaro",
   "name" : "How to write a Pbind in a specific key (tonality) or mode",
   "ancestor_list" : [],
   "description" : "Modes, scales, keys (tonal music) inside Pbinds. How to write a Pbind  for example G minor or mixolydian #4 sing \\scale and \\degree."
}
