| I tested it with 6.18 and the line
printks2 "Loop-Amplitude: %d%n", kloopAmp
is responsible. I see in the manual that %d is supposed to be the same as \n but that is what is causing the crash.
========================
Prof. Victor Lazzarini
Maynooth University
Ireland
> On 30 Dec 2022, at 21:38, john wrote:
>
> *Warning*
>
> This email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
>
> Versio?
> pltfoem?
>
> ^G Get Help ^X Send ^R Read File ^Y Prev Pg ^K Cut Text ^O
> Postpone
> <<
> ^G Get Help ^X Send ^R Read File ^Y Prev Pg ^K Cut Text ^O
> Postpone
>
>
> On Fri, 30 Dec 2022, Philipp Neumann wrote:
>
>> Hello everybody!
>>
>> I’m working on an looper instrument, which triggers the recording section via a MIDI Note. So that the instrument which is handling the recording starts recording when a specific midi-note gets in.
>> I use this method a lot and normaly i have no problems with this. But now an problem occurs.
>>
>> SECTION 1:
>> new alloc for instr 1:
>>
>> csound command: Abort trap
>> inactive allocs returned to freespace
>> end of score. overall amps: 0.00000 0.00000
>> overall samples out of range: 0 0
>> 0 errors in performance
>> Elapsed time at end of performance: real: 4.003s, CPU: 0.034s
>> closing device
>> 0 128 sample blks of 64-bit floats written to dac3
>>
>>
>>
>> I don’t know why. I also started to build the instrument again, but when the instruments are called via the score. There i have no problems.
>>
>> Can somebody help?
>>
>> This is the code:
>>
>>
>>
>> -d -odac3 -iadc2 -W -3 -+rtmidi=coremidi -M0 -B128 -b64
>>
>>
>> sr = 44100
>> ksmps = 64
>> nchnls = 2
>> 0dbfs = 1.0
>> nchnls_i = 1
>> gimic = 1
>>
>> gibufferSize = 5
>> gibuffer ftgen 0, 0, -gibufferSize*sr, 2, 0
>> massign 1, 100
>> ;-----------------------------------------------------------
>> #include "/Users/philippneumann/Documents/Csound/PHN-UDOs.txt"
>> ;-----------------------------------------------------------
>> instr 100
>> ktrig init 0
>> imidiNote notnum
>> if imidiNote == 1 then
>> ktrig += 1
>> schedkwhen ktrig, 0, 1, 101, 0, gibufferSize
>> endif
>> endin
>>
>> instr 101
>> ain inch gimic
>> aindx phasor 1/gibufferSize
>> tablew ain, aindx, gibuffer, 1
>> endin
>>
>> instr 1
>> aindx phasor 1/gibufferSize
>> aloop table3 aindx, gibuffer, 1
>>
>>
>> initc7 1, 1, 0
>> kloopAmp ctrl7 1, 1, -120, -0
>> kloopAmp port kloopAmp, 0.05
>> printks2 "Loop-Amplitude: %d%n", kloopAmp
>>
>> aout = aloop * ampdbfs(kloopAmp)
>> outs aout, aout
>> endin
>> ;-----------------------------------------------------------
>>
>>
>> i1 0 z
>>
>>
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C1fe8a43ad3e34034078e08daeaae3e74%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638080331362018727%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=BMPJhOVqIatzzsNxZP3khepvx1VgAIAoYgzTepQGyMk%3D&reserved=0
>> Send bugs reports to
>> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C1fe8a43ad3e34034078e08daeaae3e74%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638080331362018727%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=%2FTwTyq1XHvBHYQBdPWCRhvtsjEWk8MDSHoFhtkKkZwA%3D&reserved=0
>> Discussions of bugs and features can be posted here
>>
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C1fe8a43ad3e34034078e08daeaae3e74%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638080331362018727%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=BMPJhOVqIatzzsNxZP3khepvx1VgAIAoYgzTepQGyMk%3D&reserved=0
> Send bugs reports to
> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&data=05%7C01%7CVictor.Lazzarini%40mu.ie%7C1fe8a43ad3e34034078e08daeaae3e74%7C1454f5ccbb354685bbd98621fd8055c9%7C0%7C0%7C638080331362018727%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=%2FTwTyq1XHvBHYQBdPWCRhvtsjEWk8MDSHoFhtkKkZwA%3D&reserved=0
> 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
|