Linux Sound subsystem development
 help / color / mirror / Atom feed
* oolaboola extensibility to the rescue
@ 1999-10-28 16:06 est
  0 siblings, 0 replies; only message in thread
From: est @ 1999-10-28 16:06 UTC (permalink / raw)
  To: linux-sound

It's nice when, occasionally, something just works easily. :)

I've been transcribing an interview and finding my microcasette
recorder quite cumbersome to use.  I realized that a traditional
dictaphone setup would be much more productive.  This involves (a)
playing the `tape' while a pedal is depressed and (b) pausing and
backing up a little when it's released.  A MIDI sustain pedal and the
following code in my .oola/rc file created this for me.

dicta_backup = 5

def dicta_control(pn, gop = 0):
  if (gop):
    players[pn].unpause()
  else:
    players[pn].pause()
    players[pn].newpos(players[pn].posf - dicta_backup)

mi.cb['control-change'][1][64] = lambda v: dicta_control(0, v >= 64)

Eric

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-10-28 16:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-10-28 16:06 oolaboola extensibility to the rescue est

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox