szk2s/spectrum2mpe

Proposal of type annotation

Opened this issue · 2 comments

szk2s commented

partials = [partial, partial, partial ....]
partial = {points: [point, point, point...],
id: 3,
numFrames: 400}
point: {time:0.1, freq: 2000, amp: 0.5}

szk2s commented

numFramesはいらない

szk2s commented
melody = {points: [point, point, point ...],
                         id: 65}
point = { midiNoteNum: 60,
               deltaCent: -5.67,
               noteStatus: NOTE_STATUS
               amp: 0.6
             }

NOTE_STATUS {
  ON = 1,
  OFF = -1,
  NO_EVENT = 0
}