[chuck-users] midi sequencer in chuck

d dchuck at yurfish.com
Wed Apr 26 12:12:21 EDT 2023


i did some experiments and it appears that 
MidiFileIn  processes  event times
according to the tempo track. It would be
complicated to convert back to midi ticks.
I.E if you change the tempo in the midi file
you get different event times.


On Tue, 25 Apr 2023 14:01:11 -0700
Spencer Salazar <spencer.salazar at gmail.com> wrote:

> Sounds cool -- storing absolute offsets of the MIDI events from some
> arbitrary start time would work better to implement seeking. Deltas
> can then be reconstructed from [current_event_time -
> previous_event_time]. You can iterate through the events once at the
> very beginning to convert deltas to absolute times.
> 
> Spencer
> 
> 
> On Tue, Apr 25, 2023 at 1:43 PM d <dchuck at yurfish.com> wrote:
> 
> > Hi
> >
> > I'm revisiting my chuck sequencer
> > after trying java for a bit.
> >
> > I can play a file, now.
> >
> > But I want to seek to a particular
> > measure, start  and stop at random times,
> > break out of a loop over some bars,
> > and other kinds of conducting.
> >
> > SO Ive loaded the tracks in an array
> > but the times are converted to deltas
> > Making seeking difficult.
> >
> > I think I need to implement a midi clock
> > and somehow "send" the time to the
> > track sporks or something.
> >
> > Perhaps there is something in the
> > upcomping realease that will help?
> >
> > I do my arranging in lilypond and
> > long term id like to explore
> > "players" that modify the events
> > slightly, adding velocity,swing,
> > vibrato, etc and be able to
> > conduct that in real time.
> > Perhaps even from cues in the score.
> >
> > any suggestions welcome
> > thanks,
> > d
> > _______________________________________________
> > chuck-users mailing list
> > chuck-users at lists.cs.princeton.edu
> > https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
> >
> >



More information about the chuck-users mailing list