Csound Csound-dev Csound-tekno Search About

Re: turnoff an instrument

Date2016-03-15 14:18
Fromjpff
SubjectRe: turnoff an instrument
I need it for android by tomorrow so I will back off.  Thanks though

==John

Sent from TypeApp

On 15 Mar 2016, at 10:57, Victor Lazzarini  wrote:

Ok, now with the latest develop code you can use nstance as you tried below,
I’ve fixed the regression bug.
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952
  On 14 Mar 2016, at 20:47, jpff  wrote:

  I want/need to have an instrument that at i-time turns off instr 15
  and then schedules i15 for a little in the future

  turnoff2 works at perf time ad schedule is OK for the second part but
  how do I turn off i15 at i-time?  turnoff looks useful but the manual
  is unclear (to me).  It looks as if I need to start i15 via nstance?
  is that correct?  I would love an example

  I have tried
  instr 7
   turnoff2 15, 0, 0
   schedule 2, 0.5, $LEN, 1, $LEN
  endin

  which fails

  and
  instr 7
   turnoff gi15
   gi15 nstance 15, 0.3, 36000, 1, $LEN
  endin
  which complains with
  new alloc for instr 7:
  WARNING: instance not valid

  Any help welcome -- I do not usually work in real time
  ==John ffitch

  Csound mailing list
  Csound@listserv.heanet.ie
  https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
  Send bugs reports to
         https://github.com/csound/csound/issues
  Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
         https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here