Csound Csound-dev Csound-tekno Search About

loscilx and sndload

Date2015-04-21 11:30
Fromjpff
Subjectloscilx and sndload
Does anyone use these opcodes  If so could you provide a simple
example and/or explain their operation?

in Oct 15, 2006; 6:27pm I wrote

> I believed at the time that these opcodes were abandoned rather than
> finished, and have also checked Istvan's sources.

> So, either someone takes them over, they are removed, or someone posts
> a specification so some programmer can take them forward.

so I am considering their future as undocumented unsupported opcodes.
If they are in use then we document and maintain.

==John ffitch

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-04-21 12:01
FromVictor Lazzarini
SubjectRe: loscilx and sndload
The question is do they actually work?
========================
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 21 Apr 2015, at 11:30, jpff  wrote:
> 
> Does anyone use these opcodes  If so could you provide a simple
> example and/or explain their operation?
> 
> in Oct 15, 2006; 6:27pm I wrote
> 
>> I believed at the time that these opcodes were abandoned rather than
>> finished, and have also checked Istvan's sources.
> 
>> So, either someone takes them over, they are removed, or someone posts
>> a specification so some programmer can take them forward.
> 
> so I am considering their future as undocumented unsupported opcodes.
> If they are in use then we document and maintain.
> 
> ==John ffitch
> 
> ------------------------------------------------------------------------------
> BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
> Develop your own process in accordance with the BPMN 2 standard
> Learn Process modeling best practices with Bonita BPM through live exercises
> http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
> source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
> _______________________________________________
> Csound-users mailing list
> Csound-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-users
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-04-21 12:38
Fromjpff
SubjectRe: loscilx and sndload
I do not know; have not worked out how to use them to see if they work for 
any value of work.


On Tue, 21 Apr 2015, Victor Lazzarini wrote:

> The question is do they actually work?
> ========================
> 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 21 Apr 2015, at 11:30, jpff  wrote:
>>
>> Does anyone use these opcodes  If so could you provide a simple
>> example and/or explain their operation?
>>
>> in Oct 15, 2006; 6:27pm I wrote
>>
>>> I believed at the time that these opcodes were abandoned rather than
>>> finished, and have also checked Istvan's sources.
>>
>>> So, either someone takes them over, they are removed, or someone posts
>>> a specification so some programmer can take them forward.
>>
>> so I am considering their future as undocumented unsupported opcodes.
>> If they are in use then we document and maintain.
>>
>> ==John ffitch
>>
>> ------------------------------------------------------------------------------
>> BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
>> Develop your own process in accordance with the BPMN 2 standard
>> Learn Process modeling best practices with Bonita BPM through live exercises
>> http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
>> source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
>> _______________________________________________
>> Csound-users mailing list
>> Csound-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-users
>> Send bugs reports to
>>        https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>
>
> ------------------------------------------------------------------------------
> BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
> Develop your own process in accordance with the BPMN 2 standard
> Learn Process modeling best practices with Bonita BPM through live exercises
> http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
> source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
> _______________________________________________
> Csound-users mailing list
> Csound-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-users
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
>

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-04-21 13:46
FromJacob Joaquin
SubjectRe: loscilx and sndload
AttachmentsNone  None  
Here's an example locilx I use in the PySco Amen Tutorial:

CSD:


On Tue, Apr 21, 2015 at 4:38 AM, jpff <jpff@codemist.co.uk> wrote:
I do not know; have not worked out how to use them to see if they work for
any value of work.


On Tue, 21 Apr 2015, Victor Lazzarini wrote:

> The question is do they actually work?
> ========================
> 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 21 Apr 2015, at 11:30, jpff <jpff@codemist.co.uk> wrote:
>>
>> Does anyone use these opcodes  If so could you provide a simple
>> example and/or explain their operation?
>>
>> in Oct 15, 2006; 6:27pm I wrote
>>
>>> I believed at the time that these opcodes were abandoned rather than
>>> finished, and have also checked Istvan's sources.
>>
>>> So, either someone takes them over, they are removed, or someone posts
>>> a specification so some programmer can take them forward.
>>
>> so I am considering their future as undocumented unsupported opcodes.
>> If they are in use then we document and maintain.
>>
>> ==John ffitch
>>
>> ------------------------------------------------------------------------------
>> BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
>> Develop your own process in accordance with the BPMN 2 standard
>> Learn Process modeling best practices with Bonita BPM through live exercises
>> http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
>> source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
>> _______________________________________________
>> Csound-users mailing list
>> Csound-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-users
>> Send bugs reports to
>>        https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>
>
> ------------------------------------------------------------------------------
> BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
> Develop your own process in accordance with the BPMN 2 standard
> Learn Process modeling best practices with Bonita BPM through live exercises
> http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
> source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
> _______________________________________________
> Csound-users mailing list
> Csound-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-users
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
>

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here



--

Date2015-04-21 13:54
Fromjpff
SubjectRe: loscilx and sndload
Wuld you care to explain what it does?  I have run your example (could we 
use it for the manuak?)

==Jn ff


------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-04-21 14:25
FromJacob Joaquin
SubjectRe: loscilx and sndload
AttachmentsNone  None  
I can try to explain my instrument, but not the opcode. Why or how I ended up using an undocumented opcode, or what benefits it has over other similar opcodes, I don't remember. I do remember being frustrated at not finding precisely what I needed until I stumbled across loscilx.

How the instrument works: The instrument plays back a portion of the soundfile starting a user specified position with ibeat (p5). The instrument is broken up into 16 beats, as specified by gibeats. An ibeat value of 0 would play at the beginning, an ibeat value of 8 would start in the middle. The ibeat value is translated into sample position with "ipos = ibeat / gibeats * gilength * gisr".

In a nutshell, it's a simple way to choose a drum sample from a drum loop.

The only other thing I can point out is itune, which changes the playback speed / pitch. The rest, I can't explain, at least not without further testing, which I'll have time for in a day or two. Here's the example:

gS_loop = "amen_break.wav"
gisr filesr gS_loop
gilength filelen gS_loop
gibeats = 16 

instr 1
    idur = p3
    iamp = p4
    ibeat = p5
    itune = p6
    ipos = ibeat / gibeats * gilength * gisr

    aenv linseg iamp, idur - 0.01, iamp, 0.01, 0
    a1, a2 loscilx aenv, itune, 1, 0, 1, ipos, 0
    outs a1, a2
endin



On Tue, Apr 21, 2015 at 5:54 AM, jpff <jpff@codemist.co.uk> wrote:
Wuld you care to explain what it does?  I have run your example (could we
use it for the manuak?)

==Jn ff


------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here



--

Date2015-04-21 16:17
Fromjpff
SubjectRe: loscilx and sndload
AttachmentsNone  None  
Strange -- there isno itune paramter in the code as far as I can see.
I am working on dovcumentation and there are many oddities unexplain so 
far.

May I adjust your example for the manual?

==John

On Tue, 21 Apr 2015, Jacob Joaquin wrote:

> I can try to explain my instrument, but not the opcode. Why or how I ended up
> using an undocumented opcode, or what benefits it has over other similar
> opcodes, I don't remember. I do remember being frustrated at not finding
> precisely what I needed until I stumbled across loscilx.
> How the instrument works: The instrument plays back a portion of the soundfile
> starting a user specified position with ibeat (p5). The instrument is broken
> up into 16 beats, as specified by gibeats. An ibeat value of 0 would play at
> the beginning, an ibeat value of 8 would start in the middle. The ibeat value
> is translated into sample position with "ipos = ibeat / gibeats * gilength *
> gisr".
> 
> In a nutshell, it's a simple way to choose a drum sample from a drum loop.
> 
> The only other thing I can point out is itune, which changes the playback
> speed / pitch. The rest, I can't explain, at least not without further
> testing, which I'll have time for in a day or two. Here's the example:
> 
> gS_loop = "amen_break.wav"
> gisr filesr gS_loop
> gilength filelen gS_loop
> gibeats = 16 
> 
> instr 1
>     idur = p3
>     iamp = p4
>     ibeat = p5
>     itune = p6
>     ipos = ibeat / gibeats * gilength * gisr
> 
>     aenv linseg iamp, idur - 0.01, iamp, 0.01, 0
>     a1, a2 loscilx aenv, itune, 1, 0, 1, ipos, 0
>     outs a1, a2
> endin
> 
> 
> 
> On Tue, Apr 21, 2015 at 5:54 AM, jpff  wrote:
>       Wuld you care to explain what it does?  I have run your example
>       (could we
>       use it for the manuak?)
>
>       ==Jn ff
> 
> 
> -----------------------------------------------------------------------------
>       -
>       BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
>       Develop your own process in accordance with the BPMN 2 standard
>       Learn Process modeling best practices with Bonita BPM through live
>       exercises
>       http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual-
>       event?utm_
>       source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
>       _______________________________________________
>       Csound-users mailing list
>       Csound-users@lists.sourceforge.net
>       https://lists.sourceforge.net/lists/listinfo/csound-users
>       Send bugs reports to
>               https://github.com/csound/csound/issues
>       Discussions of bugs and features can be posted here
> 
> 
> 
> 
> --
> Jacob T. Joaquin
> jacobjoaquin@gmail.com
> 559.577.3909
> 
>

Date2015-04-21 16:20
FromJacob Joaquin
SubjectRe: loscilx and sndload
AttachmentsNone  None  
Yes, feel free to do whatever you'd like with the example. And don't worry about crediting my name, as it's a pretty basic example.

On Tue, Apr 21, 2015 at 8:17 AM, jpff <jpff@codemist.co.uk> wrote:
Strange -- there isno itune paramter in the code as far as I can see.
I am working on dovcumentation and there are many oddities unexplain so far.

May I adjust your example for the manual?

==John


On Tue, 21 Apr 2015, Jacob Joaquin wrote:

I can try to explain my instrument, but not the opcode. Why or how I ended up
using an undocumented opcode, or what benefits it has over other similar
opcodes, I don't remember. I do remember being frustrated at not finding
precisely what I needed until I stumbled across loscilx.
How the instrument works: The instrument plays back a portion of the soundfile
starting a user specified position with ibeat (p5). The instrument is broken
up into 16 beats, as specified by gibeats. An ibeat value of 0 would play at
the beginning, an ibeat value of 8 would start in the middle. The ibeat value
is translated into sample position with "ipos = ibeat / gibeats * gilength *
gisr".

In a nutshell, it's a simple way to choose a drum sample from a drum loop.

The only other thing I can point out is itune, which changes the playback
speed / pitch. The rest, I can't explain, at least not without further
testing, which I'll have time for in a day or two. Here's the example:

gS_loop = "amen_break.wav"
gisr filesr gS_loop
gilength filelen gS_loop
gibeats = 16 

instr 1
    idur = p3
    iamp = p4
    ibeat = p5
    itune = p6
    ipos = ibeat / gibeats * gilength * gisr

    aenv linseg iamp, idur - 0.01, iamp, 0.01, 0
    a1, a2 loscilx aenv, itune, 1, 0, 1, ipos, 0
    outs a1, a2
endin



On Tue, Apr 21, 2015 at 5:54 AM, jpff <jpff@codemist.co.uk> wrote:
      Wuld you care to explain what it does?  I have run your example
      (could we
      use it for the manuak?)

      ==Jn ff


-----------------------------------------------------------------------------
      -
      BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
      Develop your own process in accordance with the BPMN 2 standard
      Learn Process modeling best practices with Bonita BPM through live
      exercises
      http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual-
      event?utm_
      source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
      _______________________________________________
      Csound-users mailing list
      Csound-users@lists.sourceforge.net
      https://lists.sourceforge.net/lists/listinfo/csound-users
      Send bugs reports to
              https://github.com/csound/csound/issues
      Discussions of bugs and features can be posted here




--
Jacob T. Joaquin
jacobjoaquin@gmail.com
559.577.3909


------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here




--