import { NoteExample, Timing } from '../../types';

export const soFlyMelody: NoteExample = {
  patternDescription: 'a fun, light, pop melody, starting on',
  pitchDescription: 'C5',
  timingQualifier: 'with some timing variety, but mostly',
  timing: Timing.Sixteenth,
  holdDescription: 'with normal articulation',
  notes: [
    {
      start: 1.5,
      pitch: 51,
      velocity: 0.7874015748031497,
      end: 1.9353741496598396,
      lifted: true,
    },
    {
      start: 3,
      pitch: 51,
      velocity: 0.7874015748031497,
      end: 3.1625396825396734,
      lifted: true,
    },
    {
      start: 0,
      pitch: 60,
      velocity: 0.7874015748031497,
      end: 0.3192743764172157,
      lifted: true,
    },
    {
      start: 0.5,
      pitch: 58,
      velocity: 0.7874015748031497,
      end: 0.679954648526067,
      lifted: true,
    },
    {
      start: 0.75,
      pitch: 55,
      velocity: 0.7874015748031497,
      end: 0.9067346938775422,
      lifted: true,
    },
    {
      start: 1,
      pitch: 53,
      velocity: 0.7874015748031497,
      end: 1.359909297052134,
      lifted: true,
    },
    {
      start: 3.25,
      pitch: 53,
      velocity: 0.7874015748031497,
      end: 3.4473696145124606,
      lifted: true,
    },
    {
      start: 3.5,
      pitch: 55,
      velocity: 0.7874015748031497,
      end: 3.8482993197278716,
      lifted: true,
    },
    {
      start: 4.5,
      pitch: 58,
      velocity: 0.7874015748031497,
      end: 4.6335147392290175,
      lifted: true,
    },
    {
      start: 4.75,
      pitch: 55,
      velocity: 0.7874015748031497,
      end: 4.866099773242624,
      lifted: true,
    },
    {
      start: 5,
      pitch: 53,
      velocity: 0.7874015748031497,
      end: 5.354104308390003,
      lifted: true,
    },
    {
      start: 4,
      pitch: 60,
      velocity: 0.7874015748031497,
      end: 4.278639455782297,
      lifted: true,
    },
    {
      start: 5.5,
      pitch: 51,
      velocity: 0.7874015748031497,
      end: 5.912154195011315,
      lifted: true,
    },
  ],
};

export const nothingToLoseMelody = {
  patternDescription: 'a groovy, funky pop melody, starting on',
  pitchDescription: 'C5',
  timingQualifier: 'starting with some slower notes, then going into a section',
  timing: Timing.Sixteenth,
  holdDescription: 'with mostly staccato articulation',
  notes: [
    {
      start: 4.75,
      pitch: 43,
      velocity: 0.7874015748031497,
      end: 4.900929705215411,
      lifted: true,
    },
    {
      start: 5.75,
      pitch: 43,
      velocity: 0.7874015748031497,
      end: 5.912539682539673,
      lifted: true,
    },
    {
      start: 4.5,
      pitch: 45,
      velocity: 0.7874015748031497,
      end: 4.720589569160985,
      lifted: true,
    },
    {
      start: 5.5,
      pitch: 45,
      velocity: 0.7874015748031497,
      end: 5.685759637188198,
      lifted: true,
    },
    {
      start: 3.75,
      pitch: 48,
      velocity: 0.7874015748031497,
      end: 3.964784580498854,
      lifted: true,
    },
    {
      start: 4.25,
      pitch: 48,
      velocity: 0.7874015748031497,
      end: 4.3835147392290175,
      lifted: true,
    },
    {
      start: 5,
      pitch: 48,
      velocity: 0.7874015748031497,
      end: 5.24380952380951,
      lifted: true,
    },
    {
      start: 6,
      pitch: 52,
      velocity: 0.7874015748031497,
      end: 6.121904761904755,
      lifted: true,
    },
    {
      start: 0.5,
      pitch: 60,
      velocity: 0.7874015748031497,
      end: 0.7031746031745918,
      lifted: true,
    },
    {
      start: 1,
      pitch: 58,
      velocity: 0.7874015748031497,
      end: 1.1683446712018046,
      lifted: true,
    },
    {
      start: 1.5,
      pitch: 57,
      velocity: 0.7874015748031497,
      end: 1.650929705215411,
      lifted: true,
    },
    {
      start: 2.75,
      pitch: 57,
      velocity: 0.7874015748031497,
      end: 2.8835147392290175,
      lifted: true,
    },
    {
      start: 6.5,
      pitch: 52,
      velocity: 0.7874015748031497,
      end: 6.714784580498854,
      lifted: true,
    },
    {
      start: 7,
      pitch: 48,
      velocity: 0.7874015748031497,
      end: 7.2554195011337725,
      lifted: true,
    },
    {
      start: 7.5,
      pitch: 45,
      velocity: 0.7874015748031497,
      end: 7.708979591836723,
      lifted: true,
    },
    {
      pitch: 43,
      start: 7.75,
      end: 8,
      lifted: true,
      velocity: 0.7874015748031497,
    },
    {
      start: 2,
      pitch: 55,
      velocity: 0.7874015748031497,
      end: 2.75,
      lifted: true,
    },
  ],
};

export const treehouseMelody = {
  patternDescription: 'a happy, cheery pop melody, starting on',
  pitchDescription: 'C5',
  timingQualifier: 'with a clear off-beat rhythmic pattern, built',
  timing: Timing.Eighth,
  holdDescription: 'with normal articulation',
  notes: [
    {
      start: 1.75,
      pitch: 56,
      velocity: 0.7874015748031497,
      end: 1.9763945578231166,
      lifted: true,
    },
    {
      pitch: 56,
      start: 10.25,
      end: 10.375,
      lifted: true,
      velocity: 0.7874015748031497,
    },
    {
      start: 1.25,
      pitch: 58,
      velocity: 0.7874015748031497,
      end: 1.4996145124716413,
      lifted: true,
    },
    {
      start: 0,
      pitch: 60,
      velocity: 0.7874015748031497,
      end: 0.5050340136054166,
      lifted: true,
    },
    {
      start: 0.75,
      pitch: 60,
      velocity: 0.7874015748031497,
      end: 0.9415646258503294,
      lifted: true,
    },
    {
      start: 4,
      pitch: 53,
      velocity: 0.7874015748031497,
      end: 4.400544217687052,
      lifted: true,
    },
    {
      start: 4.75,
      pitch: 53,
      velocity: 0.7874015748031497,
      end: 4.982199546485248,
      lifted: true,
    },
    {
      start: 5.25,
      pitch: 51,
      velocity: 0.7874015748031497,
      end: 5.464784580498854,
      lifted: true,
    },
    {
      start: 5.75,
      pitch: 49,
      velocity: 0.7874015748031497,
      end: 6.046054421768691,
      lifted: true,
    },
    {
      start: 8,
      pitch: 60,
      velocity: 0.7874015748031497,
      end: 8.505034013605417,
      lifted: true,
    },
    {
      start: 8.75,
      pitch: 60,
      velocity: 0.7874015748031497,
      end: 8.94156462585033,
      lifted: true,
    },
    {
      start: 9.25,
      pitch: 63,
      velocity: 0.7874015748031497,
      end: 9.499614512471641,
      lifted: true,
    },
    {
      start: 9.75,
      pitch: 58,
      velocity: 0.7874015748031497,
      end: 9.976394557823117,
      lifted: true,
    },
    {
      pitch: 56,
      start: 10.75,
      end: 10.875,
      lifted: true,
      velocity: 0.7874015748031497,
    },
    {
      start: 12,
      pitch: 53,
      velocity: 0.7874015748031497,
      end: 12.400544217687052,
      lifted: true,
    },
    {
      start: 12.75,
      pitch: 53,
      velocity: 0.7874015748031497,
      end: 12.982199546485248,
      lifted: true,
    },
    {
      start: 13.25,
      pitch: 51,
      velocity: 0.7874015748031497,
      end: 13.464784580498854,
      lifted: true,
    },
    {
      start: 13.75,
      pitch: 49,
      velocity: 0.7874015748031497,
      end: 14.046054421768691,
      lifted: true,
    },
  ],
};

export const startingLineMelody = {
  patternDescription: 'a fun, major key pop melody, starting on',
  pitchDescription: 'C5',
  timingQualifier: 'with an accelerating rhythmic pattern, ending with a descending line, built',
  timing: Timing.Sixteenth,
  holdDescription: 'with a mix of staccato and legato articulation',
  notes: [
    {
      start: 5.5,
      pitch: 43,
      velocity: 0.7874015748031497,
      end: 5.650929705215411,
      lifted: true,
    },
    {
      start: 5.75,
      pitch: 45,
      velocity: 0.7874015748031497,
      end: 5.912539682539673,
      lifted: true,
    },
    {
      start: 6.5,
      pitch: 45,
      velocity: 0.7874015748031497,
      end: 6.883129251700659,
      lifted: true,
    },
    {
      start: 3.5,
      pitch: 48,
      velocity: 0.7874015748031497,
      end: 5.1312018140588656,
      lifted: true,
    },
    {
      start: 6,
      pitch: 48,
      velocity: 0.7874015748031497,
      end: 6.1335147392290175,
      lifted: true,
    },
    {
      start: 6.25,
      pitch: 48,
      velocity: 0.7874015748031497,
      end: 6.435759637188198,
      lifted: true,
    },
    {
      start: 7,
      pitch: 48,
      velocity: 0.7874015748031497,
      end: 7.6327437641723,
      lifted: true,
    },
    {
      start: 11.5,
      pitch: 48,
      velocity: 0.7874015748031497,
      end: 12.481043083900172,
      lifted: true,
    },
    {
      start: 2,
      pitch: 50,
      velocity: 0.7874015748031497,
      end: 2.121904761904755,
      lifted: true,
    },
    {
      start: 2.5,
      pitch: 50,
      velocity: 0.7874015748031497,
      end: 3.1675736961450873,
      lifted: true,
    },
    {
      start: 10,
      pitch: 50,
      velocity: 0.7874015748031497,
      end: 10.174149659863936,
      lifted: true,
    },
    {
      start: 11,
      pitch: 50,
      velocity: 0.7874015748031497,
      end: 11.133514739229017,
      lifted: true,
    },
    {
      start: 0,
      pitch: 52,
      velocity: 0.7874015748031497,
      end: 0.7256235827664046,
      lifted: true,
    },
    {
      start: 1,
      pitch: 52,
      velocity: 0.7874015748031497,
      end: 1.9113832199545975,
      lifted: true,
    },
    {
      start: 8,
      pitch: 52,
      velocity: 0.7874015748031497,
      end: 8.655963718820825,
      lifted: true,
    },
    {
      start: 9,
      pitch: 52,
      velocity: 0.7874015748031497,
      end: 9.766258503401318,
      lifted: true,
    },
    {
      start: 10.5,
      pitch: 52,
      velocity: 0.7874015748031497,
      end: 10.714784580498854,
      lifted: true,
    },
    {
      start: 13.5,
      pitch: 60,
      velocity: 0.7874015748031497,
      end: 13.616099773242631,
      lifted: true,
    },
    {
      start: 13.75,
      pitch: 57,
      velocity: 0.7874015748031497,
      end: 13.877709750566893,
      lifted: true,
    },
    {
      start: 14,
      pitch: 55,
      velocity: 0.7874015748031497,
      end: 14.168344671201808,
      lifted: true,
    },
    {
      start: 14.25,
      pitch: 52,
      velocity: 0.7874015748031497,
      end: 14.429954648526074,
      lifted: true,
    },
    {
      start: 14.5,
      pitch: 50,
      velocity: 0.7874015748031497,
      end: 14.720589569160996,
      lifted: true,
    },
    {
      start: 14.75,
      pitch: 48,
      velocity: 0.7874015748031497,
      end: 14.918344671201808,
      lifted: true,
    },
    {
      pitch: 45,
      start: 15,
      end: 15.0625,
      lifted: true,
      velocity: 0.7874015748031497,
    },
    {
      pitch: 43,
      start: 15.25,
      end: 15.3125,
      lifted: true,
      velocity: 0.7874015748031497,
    },
    {
      pitch: 40,
      start: 15.5,
      end: 15.5625,
      lifted: true,
      velocity: 0.7874015748031497,
    },
    {
      pitch: 38,
      start: 15.75,
      end: 15.8125,
      lifted: true,
      velocity: 0.7874015748031497,
    },
  ],
};

export const casaDeMelMelody = {
  patternDescription: 'a cheery, arpeggiated pop melody, built around',
  pitchDescription: 'C5',
  timingQualifier: 'starting with some faster notes',
  timing: Timing.Eighth,
  holdDescription: 'with a legato articulation',
  notes: [
    {
      start: 0,
      pitch: 43,
      velocity: 0.7874015748031497,
      end: 0.42376417233557717,
      lifted: true,
    },
    {
      start: 0.5,
      pitch: 45,
      velocity: 0.7874015748031497,
      end: 0.9121541950113148,
      lifted: true,
    },
    {
      start: 1,
      pitch: 48,
      velocity: 0.7874015748031497,
      end: 1.2496145124716413,
      lifted: true,
    },
    {
      start: 1.5,
      pitch: 48,
      velocity: 0.7874015748031497,
      end: 1.9643990929704955,
      lifted: true,
    },
    {
      start: 2,
      pitch: 43,
      velocity: 0.7874015748031497,
      end: 2.5166439909296763,
      lifted: true,
    },
    {
      start: 2.5,
      pitch: 45,
      velocity: 0.7874015748031497,
      end: 3.03405895691607,
      lifted: true,
    },
    {
      start: 3,
      pitch: 48,
      velocity: 0.7874015748031497,
      end: 3.446984126984102,
      lifted: true,
    },
    {
      start: 3.5,
      pitch: 43,
      velocity: 0.7874015748031497,
      end: 3.88893424036279,
      lifted: true,
    },
    {
      start: 4,
      pitch: 53,
      velocity: 0.7874015748031497,
      end: 5.143582766439845,
      lifted: true,
    },
    {
      start: 5.5,
      pitch: 52,
      velocity: 0.7874015748031497,
      end: 7.311156462584933,
      lifted: true,
    },
    {
      start: 7.5,
      pitch: 43,
      velocity: 0.7874015748031497,
      end: 8.446213151927385,
      lifted: true,
    },
    {
      start: 8.5,
      pitch: 45,
      velocity: 0.7874015748031497,
      end: 8.865714285714265,
      lifted: true,
    },
    {
      start: 9,
      pitch: 48,
      velocity: 0.7874015748031497,
      end: 9.284444444444429,
      lifted: true,
    },
    {
      start: 9.5,
      pitch: 48,
      velocity: 0.7874015748031497,
      end: 9.93537414965984,
      lifted: true,
    },
    {
      start: 10,
      pitch: 43,
      velocity: 0.7874015748031497,
      end: 10.464399092970496,
      lifted: true,
    },
    {
      start: 10.5,
      pitch: 45,
      velocity: 0.7874015748031497,
      end: 10.970204081632627,
      lifted: true,
    },
    {
      start: 11,
      pitch: 48,
      velocity: 0.7874015748031497,
      end: 11.38893424036279,
      lifted: true,
    },
    {
      start: 11.5,
      pitch: 43,
      velocity: 0.7874015748031497,
      end: 11.958594104308364,
      lifted: true,
    },
    {
      start: 12,
      pitch: 53,
      velocity: 0.7874015748031497,
      end: 12.510839002267545,
      lifted: true,
    },
    {
      start: 13,
      pitch: 52,
      velocity: 0.7874015748031497,
      end: 13.58049886621312,
      lifted: true,
    },
    {
      start: 14,
      pitch: 53,
      velocity: 0.7874015748031497,
      end: 14.261224489795904,
      lifted: true,
    },
    {
      start: 14.5,
      pitch: 52,
      velocity: 0.7874015748031497,
      end: 14.98761904761902,
      lifted: true,
    },
  ],
};
