Csound Csound-dev Csound-tekno Search About

[Cs-dev] issues with string channels..

Date2014-02-03 20:26
FromRory Walsh
Subject[Cs-dev] issues with string channels..
The reason I wanted update my build was to see if the issues with
string channels was sorted on Windows. I'm still having a small issue
when I try to retrieve a string channel on an instrument being
controlled via MIDI. In the following instrument CABBAGE_CSD_PATH is
set to a path and is definitely valid:

instr 1
Sname chnget "CABBAGE_CSD_PATH"
endin

But when the instrument is triggered by a MIDI note I get a segfault:

0  0x6c51ddb1  mfree
C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Engine\\memalloc.c
 133
1  0x6c547d99  chnget_opcode_init_S
C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\OOps\\bus.c
 753
2  0x6c51672b  MIDIinsert
C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Engine\\insert.c
 567
3  0x6c5229d4  process_midi_event
C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Engine\\musmon.c
 796
4  0x6c522dee  process_rt_event
C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Engine\\musmon.c
 874
5  0x6c523c8b  sensevents
C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Engine\\musmon.c
 1090
6  0x6c664d84  csoundPerformKsmps
C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Top\\csound.c
 1617
7  0x006de836  Csound::PerformKsmps
C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\include\\csound.hpp
 351

If I trigger the instrument using another instrument I get no crash.
Also, if I pass a file name with the full path from my host to Csound
on a string channel, Csound seems to strip the '\'s from the string. I
guess it's a windows thing, anyhow it's not a big deal, I can work
around it.

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-02-03 21:01
FromVictor Lazzarini
SubjectRe: [Cs-dev] issues with string channels..
Sorry but again, I can't reproduce it here. I'm using the virtual midi device and triggering your
instrument and there are no issues. Can you test it in the command-line?

Victor
On 3 Feb 2014, at 20:26, Rory Walsh wrote:

> The reason I wanted update my build was to see if the issues with
> string channels was sorted on Windows. I'm still having a small issue
> when I try to retrieve a string channel on an instrument being
> controlled via MIDI. In the following instrument CABBAGE_CSD_PATH is
> set to a path and is definitely valid:
> 
> instr 1
> Sname chnget "CABBAGE_CSD_PATH"
> endin
> 
> But when the instrument is triggered by a MIDI note I get a segfault:
> 
> 0  0x6c51ddb1  mfree
> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Engine\\memalloc.c
> 133
> 1  0x6c547d99  chnget_opcode_init_S
> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\OOps\\bus.c
> 753
> 2  0x6c51672b  MIDIinsert
> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Engine\\insert.c
> 567
> 3  0x6c5229d4  process_midi_event
> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Engine\\musmon.c
> 796
> 4  0x6c522dee  process_rt_event
> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Engine\\musmon.c
> 874
> 5  0x6c523c8b  sensevents
> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Engine\\musmon.c
> 1090
> 6  0x6c664d84  csoundPerformKsmps
> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Top\\csound.c
> 1617
> 7  0x006de836  Csound::PerformKsmps
> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\include\\csound.hpp
> 351
> 
> If I trigger the instrument using another instrument I get no crash.
> Also, if I pass a file name with the full path from my host to Csound
> on a string channel, Csound seems to strip the '\'s from the string. I
> guess it's a windows thing, anyhow it's not a big deal, I can work
> around it.
> 
> ------------------------------------------------------------------------------
> Managing the Performance of Cloud-Based Applications
> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
> Read the Whitepaper.
> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-02-03 21:06
FromVictor Lazzarini
SubjectRe: [Cs-dev] issues with string channels..
In any case, I've modified the code so that there is no reallocation if there is no need for it.
Can you check if it made any difference?

Victor
On 3 Feb 2014, at 21:01, Victor Lazzarini wrote:

> Sorry but again, I can't reproduce it here. I'm using the virtual midi device and triggering your
> instrument and there are no issues. Can you test it in the command-line?
> 
> Victor
> On 3 Feb 2014, at 20:26, Rory Walsh wrote:
> 
>> The reason I wanted update my build was to see if the issues with
>> string channels was sorted on Windows. I'm still having a small issue
>> when I try to retrieve a string channel on an instrument being
>> controlled via MIDI. In the following instrument CABBAGE_CSD_PATH is
>> set to a path and is definitely valid:
>> 
>> instr 1
>> Sname chnget "CABBAGE_CSD_PATH"
>> endin
>> 
>> But when the instrument is triggered by a MIDI note I get a segfault:
>> 
>> 0  0x6c51ddb1  mfree
>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Engine\\memalloc.c
>> 133
>> 1  0x6c547d99  chnget_opcode_init_S
>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\OOps\\bus.c
>> 753
>> 2  0x6c51672b  MIDIinsert
>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Engine\\insert.c
>> 567
>> 3  0x6c5229d4  process_midi_event
>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Engine\\musmon.c
>> 796
>> 4  0x6c522dee  process_rt_event
>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Engine\\musmon.c
>> 874
>> 5  0x6c523c8b  sensevents
>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Engine\\musmon.c
>> 1090
>> 6  0x6c664d84  csoundPerformKsmps
>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Top\\csound.c
>> 1617
>> 7  0x006de836  Csound::PerformKsmps
>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\include\\csound.hpp
>> 351
>> 
>> If I trigger the instrument using another instrument I get no crash.
>> Also, if I pass a file name with the full path from my host to Csound
>> on a string channel, Csound seems to strip the '\'s from the string. I
>> guess it's a windows thing, anyhow it's not a big deal, I can work
>> around it.
>> 
>> ------------------------------------------------------------------------------
>> Managing the Performance of Cloud-Based Applications
>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
>> Read the Whitepaper.
>> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> Managing the Performance of Cloud-Based Applications
> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
> Read the Whitepaper.
> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-02-03 21:30
FromRory Walsh
SubjectRe: [Cs-dev] issues with string channels..
Still results in a seg fault, but in a different place now. Not much
from the debugger(see below). The problem with creating a command line
version is that I use Csound::SetHostImplementedMIDIIO(true) so I'd
have to implement my own MIDI IO routines just to show the problem. If
I swap the following orc with k variables instead of S variables it
all works fine:

chn_S "CABBAGE_CSD_PATH", 3

instr 1
chnset "test", "CABBAGE_CSD_PATH"
Sname chnget "CABBAGE_CSD_PATH"
endin

Strange one.

0  0x75148dd2  strcat
1  0x07bcfdac  ??
2  0x006de8b6  Csound::PerformKsmps
C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\include\\csound.hpp
 351
3  0x0047df5f  CabbagePluginAudioProcessor::processBlock

On 3 February 2014 21:06, Victor Lazzarini  wrote:
> In any case, I've modified the code so that there is no reallocation if there is no need for it.
> Can you check if it made any difference?
>
> Victor
> On 3 Feb 2014, at 21:01, Victor Lazzarini wrote:
>
>> Sorry but again, I can't reproduce it here. I'm using the virtual midi device and triggering your
>> instrument and there are no issues. Can you test it in the command-line?
>>
>> Victor
>> On 3 Feb 2014, at 20:26, Rory Walsh wrote:
>>
>>> The reason I wanted update my build was to see if the issues with
>>> string channels was sorted on Windows. I'm still having a small issue
>>> when I try to retrieve a string channel on an instrument being
>>> controlled via MIDI. In the following instrument CABBAGE_CSD_PATH is
>>> set to a path and is definitely valid:
>>>
>>> instr 1
>>> Sname chnget "CABBAGE_CSD_PATH"
>>> endin
>>>
>>> But when the instrument is triggered by a MIDI note I get a segfault:
>>>
>>> 0  0x6c51ddb1  mfree
>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Engine\\memalloc.c
>>> 133
>>> 1  0x6c547d99  chnget_opcode_init_S
>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\OOps\\bus.c
>>> 753
>>> 2  0x6c51672b  MIDIinsert
>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Engine\\insert.c
>>> 567
>>> 3  0x6c5229d4  process_midi_event
>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Engine\\musmon.c
>>> 796
>>> 4  0x6c522dee  process_rt_event
>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Engine\\musmon.c
>>> 874
>>> 5  0x6c523c8b  sensevents
>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Engine\\musmon.c
>>> 1090
>>> 6  0x6c664d84  csoundPerformKsmps
>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Top\\csound.c
>>> 1617
>>> 7  0x006de836  Csound::PerformKsmps
>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\include\\csound.hpp
>>> 351
>>>
>>> If I trigger the instrument using another instrument I get no crash.
>>> Also, if I pass a file name with the full path from my host to Csound
>>> on a string channel, Csound seems to strip the '\'s from the string. I
>>> guess it's a windows thing, anyhow it's not a big deal, I can work
>>> around it.
>>>
>>> ------------------------------------------------------------------------------
>>> Managing the Performance of Cloud-Based Applications
>>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
>>> Read the Whitepaper.
>>> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Managing the Performance of Cloud-Based Applications
>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
>> Read the Whitepaper.
>> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
> ------------------------------------------------------------------------------
> Managing the Performance of Cloud-Based Applications
> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
> Read the Whitepaper.
> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-02-03 21:35
FromVictor Lazzarini
SubjectRe: [Cs-dev] issues with string channels..
But you could just run with a command-line csound and virtual midi, could you not?
On 3 Feb 2014, at 21:30, Rory Walsh wrote:

> Still results in a seg fault, but in a different place now. Not much
> from the debugger(see below). The problem with creating a command line
> version is that I use Csound::SetHostImplementedMIDIIO(true) so I'd
> have to implement my own MIDI IO routines just to show the problem. If
> I swap the following orc with k variables instead of S variables it
> all works fine:
> 
> chn_S "CABBAGE_CSD_PATH", 3
> 
> instr 1
> chnset "test", "CABBAGE_CSD_PATH"
> Sname chnget "CABBAGE_CSD_PATH"
> endin
> 
> Strange one.
> 
> 0  0x75148dd2  strcat
> 1  0x07bcfdac  ??
> 2  0x006de8b6  Csound::PerformKsmps
> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\include\\csound.hpp
> 351
> 3  0x0047df5f  CabbagePluginAudioProcessor::processBlock
> 
> On 3 February 2014 21:06, Victor Lazzarini  wrote:
>> In any case, I've modified the code so that there is no reallocation if there is no need for it.
>> Can you check if it made any difference?
>> 
>> Victor
>> On 3 Feb 2014, at 21:01, Victor Lazzarini wrote:
>> 
>>> Sorry but again, I can't reproduce it here. I'm using the virtual midi device and triggering your
>>> instrument and there are no issues. Can you test it in the command-line?
>>> 
>>> Victor
>>> On 3 Feb 2014, at 20:26, Rory Walsh wrote:
>>> 
>>>> The reason I wanted update my build was to see if the issues with
>>>> string channels was sorted on Windows. I'm still having a small issue
>>>> when I try to retrieve a string channel on an instrument being
>>>> controlled via MIDI. In the following instrument CABBAGE_CSD_PATH is
>>>> set to a path and is definitely valid:
>>>> 
>>>> instr 1
>>>> Sname chnget "CABBAGE_CSD_PATH"
>>>> endin
>>>> 
>>>> But when the instrument is triggered by a MIDI note I get a segfault:
>>>> 
>>>> 0  0x6c51ddb1  mfree
>>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Engine\\memalloc.c
>>>> 133
>>>> 1  0x6c547d99  chnget_opcode_init_S
>>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\OOps\\bus.c
>>>> 753
>>>> 2  0x6c51672b  MIDIinsert
>>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Engine\\insert.c
>>>> 567
>>>> 3  0x6c5229d4  process_midi_event
>>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Engine\\musmon.c
>>>> 796
>>>> 4  0x6c522dee  process_rt_event
>>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Engine\\musmon.c
>>>> 874
>>>> 5  0x6c523c8b  sensevents
>>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Engine\\musmon.c
>>>> 1090
>>>> 6  0x6c664d84  csoundPerformKsmps
>>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Top\\csound.c
>>>> 1617
>>>> 7  0x006de836  Csound::PerformKsmps
>>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\include\\csound.hpp
>>>> 351
>>>> 
>>>> If I trigger the instrument using another instrument I get no crash.
>>>> Also, if I pass a file name with the full path from my host to Csound
>>>> on a string channel, Csound seems to strip the '\'s from the string. I
>>>> guess it's a windows thing, anyhow it's not a big deal, I can work
>>>> around it.
>>>> 
>>>> ------------------------------------------------------------------------------
>>>> Managing the Performance of Cloud-Based Applications
>>>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
>>>> Read the Whitepaper.
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> 
>>> Dr Victor Lazzarini
>>> Senior Lecturer
>>> Dept. of Music
>>> NUI Maynooth Ireland
>>> tel.: +353 1 708 3545
>>> Victor dot Lazzarini AT nuim dot ie
>>> 
>>> 
>>> 
>>> 
>>> ------------------------------------------------------------------------------
>>> Managing the Performance of Cloud-Based Applications
>>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
>>> Read the Whitepaper.
>>> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>> 
>> 
>> 
>> 
>> ------------------------------------------------------------------------------
>> Managing the Performance of Cloud-Based Applications
>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
>> Read the Whitepaper.
>> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> ------------------------------------------------------------------------------
> Managing the Performance of Cloud-Based Applications
> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
> Read the Whitepaper.
> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-02-03 21:47
FromRory Walsh
SubjectRe: [Cs-dev] issues with string channels..
I gave up trying to get any fltk stuff building on windows ages ago,
but I can try again and get back to you. I didn't think the virtual
MIDI stuff was implemented the same way as a host using its own MIDI
is it, i.e, using

csoundSetHostImplementedMIDIIO()
csoundSetExternalMidiInOpenCallback()
csoundSetExternalMidiReadCallback()
csoundSetExternalMidiOutOpenCallback()
csoundSetExternalMidiWriteCallback()

I'l let you know if I mange to build the virtual keyboard.

On 3 February 2014 21:35, Victor Lazzarini  wrote:
> But you could just run with a command-line csound and virtual midi, could you not?
> On 3 Feb 2014, at 21:30, Rory Walsh wrote:
>
>> Still results in a seg fault, but in a different place now. Not much
>> from the debugger(see below). The problem with creating a command line
>> version is that I use Csound::SetHostImplementedMIDIIO(true) so I'd
>> have to implement my own MIDI IO routines just to show the problem. If
>> I swap the following orc with k variables instead of S variables it
>> all works fine:
>>
>> chn_S "CABBAGE_CSD_PATH", 3
>>
>> instr 1
>> chnset "test", "CABBAGE_CSD_PATH"
>> Sname chnget "CABBAGE_CSD_PATH"
>> endin
>>
>> Strange one.
>>
>> 0  0x75148dd2  strcat
>> 1  0x07bcfdac  ??
>> 2  0x006de8b6  Csound::PerformKsmps
>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\include\\csound.hpp
>> 351
>> 3  0x0047df5f  CabbagePluginAudioProcessor::processBlock
>>
>> On 3 February 2014 21:06, Victor Lazzarini  wrote:
>>> In any case, I've modified the code so that there is no reallocation if there is no need for it.
>>> Can you check if it made any difference?
>>>
>>> Victor
>>> On 3 Feb 2014, at 21:01, Victor Lazzarini wrote:
>>>
>>>> Sorry but again, I can't reproduce it here. I'm using the virtual midi device and triggering your
>>>> instrument and there are no issues. Can you test it in the command-line?
>>>>
>>>> Victor
>>>> On 3 Feb 2014, at 20:26, Rory Walsh wrote:
>>>>
>>>>> The reason I wanted update my build was to see if the issues with
>>>>> string channels was sorted on Windows. I'm still having a small issue
>>>>> when I try to retrieve a string channel on an instrument being
>>>>> controlled via MIDI. In the following instrument CABBAGE_CSD_PATH is
>>>>> set to a path and is definitely valid:
>>>>>
>>>>> instr 1
>>>>> Sname chnget "CABBAGE_CSD_PATH"
>>>>> endin
>>>>>
>>>>> But when the instrument is triggered by a MIDI note I get a segfault:
>>>>>
>>>>> 0  0x6c51ddb1  mfree
>>>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Engine\\memalloc.c
>>>>> 133
>>>>> 1  0x6c547d99  chnget_opcode_init_S
>>>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\OOps\\bus.c
>>>>> 753
>>>>> 2  0x6c51672b  MIDIinsert
>>>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Engine\\insert.c
>>>>> 567
>>>>> 3  0x6c5229d4  process_midi_event
>>>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Engine\\musmon.c
>>>>> 796
>>>>> 4  0x6c522dee  process_rt_event
>>>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Engine\\musmon.c
>>>>> 874
>>>>> 5  0x6c523c8b  sensevents
>>>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Engine\\musmon.c
>>>>> 1090
>>>>> 6  0x6c664d84  csoundPerformKsmps
>>>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Top\\csound.c
>>>>> 1617
>>>>> 7  0x006de836  Csound::PerformKsmps
>>>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\include\\csound.hpp
>>>>> 351
>>>>>
>>>>> If I trigger the instrument using another instrument I get no crash.
>>>>> Also, if I pass a file name with the full path from my host to Csound
>>>>> on a string channel, Csound seems to strip the '\'s from the string. I
>>>>> guess it's a windows thing, anyhow it's not a big deal, I can work
>>>>> around it.
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Managing the Performance of Cloud-Based Applications
>>>>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
>>>>> Read the Whitepaper.
>>>>> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>> Dr Victor Lazzarini
>>>> Senior Lecturer
>>>> Dept. of Music
>>>> NUI Maynooth Ireland
>>>> tel.: +353 1 708 3545
>>>> Victor dot Lazzarini AT nuim dot ie
>>>>
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Managing the Performance of Cloud-Based Applications
>>>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
>>>> Read the Whitepaper.
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> Dr Victor Lazzarini
>>> Senior Lecturer
>>> Dept. of Music
>>> NUI Maynooth Ireland
>>> tel.: +353 1 708 3545
>>> Victor dot Lazzarini AT nuim dot ie
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Managing the Performance of Cloud-Based Applications
>>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
>>> Read the Whitepaper.
>>> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ------------------------------------------------------------------------------
>> Managing the Performance of Cloud-Based Applications
>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
>> Read the Whitepaper.
>> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
> ------------------------------------------------------------------------------
> Managing the Performance of Cloud-Based Applications
> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
> Read the Whitepaper.
> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-02-04 10:21
FromVictor Lazzarini
SubjectRe: [Cs-dev] issues with string channels..
That shouldn’t matter because the callbacks work exactly in the same way, whether they’re implemented by the host or
by a MIDI module like pmidi, cmidi or rtalsa.

Victor 
On 3 Feb 2014, at 21:47, Rory Walsh  wrote:

> I gave up trying to get any fltk stuff building on windows ages ago,
> but I can try again and get back to you. I didn't think the virtual
> MIDI stuff was implemented the same way as a host using its own MIDI
> is it, i.e, using
> 
> csoundSetHostImplementedMIDIIO()
> csoundSetExternalMidiInOpenCallback()
> csoundSetExternalMidiReadCallback()
> csoundSetExternalMidiOutOpenCallback()
> csoundSetExternalMidiWriteCallback()
> 
> I'l let you know if I mange to build the virtual keyboard.
> 
> On 3 February 2014 21:35, Victor Lazzarini  wrote:
>> But you could just run with a command-line csound and virtual midi, could you not?
>> On 3 Feb 2014, at 21:30, Rory Walsh wrote:
>> 
>>> Still results in a seg fault, but in a different place now. Not much
>>> from the debugger(see below). The problem with creating a command line
>>> version is that I use Csound::SetHostImplementedMIDIIO(true) so I'd
>>> have to implement my own MIDI IO routines just to show the problem. If
>>> I swap the following orc with k variables instead of S variables it
>>> all works fine:
>>> 
>>> chn_S "CABBAGE_CSD_PATH", 3
>>> 
>>> instr 1
>>> chnset "test", "CABBAGE_CSD_PATH"
>>> Sname chnget "CABBAGE_CSD_PATH"
>>> endin
>>> 
>>> Strange one.
>>> 
>>> 0  0x75148dd2  strcat
>>> 1  0x07bcfdac  ??
>>> 2  0x006de8b6  Csound::PerformKsmps
>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\include\\csound.hpp
>>> 351
>>> 3  0x0047df5f  CabbagePluginAudioProcessor::processBlock
>>> 
>>> On 3 February 2014 21:06, Victor Lazzarini  wrote:
>>>> In any case, I've modified the code so that there is no reallocation if there is no need for it.
>>>> Can you check if it made any difference?
>>>> 
>>>> Victor
>>>> On 3 Feb 2014, at 21:01, Victor Lazzarini wrote:
>>>> 
>>>>> Sorry but again, I can't reproduce it here. I'm using the virtual midi device and triggering your
>>>>> instrument and there are no issues. Can you test it in the command-line?
>>>>> 
>>>>> Victor
>>>>> On 3 Feb 2014, at 20:26, Rory Walsh wrote:
>>>>> 
>>>>>> The reason I wanted update my build was to see if the issues with
>>>>>> string channels was sorted on Windows. I'm still having a small issue
>>>>>> when I try to retrieve a string channel on an instrument being
>>>>>> controlled via MIDI. In the following instrument CABBAGE_CSD_PATH is
>>>>>> set to a path and is definitely valid:
>>>>>> 
>>>>>> instr 1
>>>>>> Sname chnget "CABBAGE_CSD_PATH"
>>>>>> endin
>>>>>> 
>>>>>> But when the instrument is triggered by a MIDI note I get a segfault:
>>>>>> 
>>>>>> 0  0x6c51ddb1  mfree
>>>>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Engine\\memalloc.c
>>>>>> 133
>>>>>> 1  0x6c547d99  chnget_opcode_init_S
>>>>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\OOps\\bus.c
>>>>>> 753
>>>>>> 2  0x6c51672b  MIDIinsert
>>>>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Engine\\insert.c
>>>>>> 567
>>>>>> 3  0x6c5229d4  process_midi_event
>>>>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Engine\\musmon.c
>>>>>> 796
>>>>>> 4  0x6c522dee  process_rt_event
>>>>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Engine\\musmon.c
>>>>>> 874
>>>>>> 5  0x6c523c8b  sensevents
>>>>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Engine\\musmon.c
>>>>>> 1090
>>>>>> 6  0x6c664d84  csoundPerformKsmps
>>>>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Top\\csound.c
>>>>>> 1617
>>>>>> 7  0x006de836  Csound::PerformKsmps
>>>>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\include\\csound.hpp
>>>>>> 351
>>>>>> 
>>>>>> If I trigger the instrument using another instrument I get no crash.
>>>>>> Also, if I pass a file name with the full path from my host to Csound
>>>>>> on a string channel, Csound seems to strip the '\'s from the string. I
>>>>>> guess it's a windows thing, anyhow it's not a big deal, I can work
>>>>>> around it.
>>>>>> 
>>>>>> ------------------------------------------------------------------------------
>>>>>> Managing the Performance of Cloud-Based Applications
>>>>>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
>>>>>> Read the Whitepaper.
>>>>>> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>> 
>>>>> Dr Victor Lazzarini
>>>>> Senior Lecturer
>>>>> Dept. of Music
>>>>> NUI Maynooth Ireland
>>>>> tel.: +353 1 708 3545
>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> ------------------------------------------------------------------------------
>>>>> Managing the Performance of Cloud-Based Applications
>>>>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
>>>>> Read the Whitepaper.
>>>>> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>> 
>>>> Dr Victor Lazzarini
>>>> Senior Lecturer
>>>> Dept. of Music
>>>> NUI Maynooth Ireland
>>>> tel.: +353 1 708 3545
>>>> Victor dot Lazzarini AT nuim dot ie
>>>> 
>>>> 
>>>> 
>>>> 
>>>> ------------------------------------------------------------------------------
>>>> Managing the Performance of Cloud-Based Applications
>>>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
>>>> Read the Whitepaper.
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> 
>>> ------------------------------------------------------------------------------
>>> Managing the Performance of Cloud-Based Applications
>>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
>>> Read the Whitepaper.
>>> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>> 
>> 
>> 
>> 
>> ------------------------------------------------------------------------------
>> Managing the Performance of Cloud-Based Applications
>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
>> Read the Whitepaper.
>> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> ------------------------------------------------------------------------------
> Managing the Performance of Cloud-Based Applications
> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
> Read the Whitepaper.
> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-02-04 10:23
FromRory Walsh
SubjectRe: [Cs-dev] issues with string channels..
Ok, so for now we just need to see if this is another windows only
issue. In fact, I might be able to grab the fltk dlls from Mike's last
windows build. That would save me from building it.

On 4 February 2014 10:21, Victor Lazzarini  wrote:
> That shouldn't matter because the callbacks work exactly in the same way, whether they're implemented by the host or
> by a MIDI module like pmidi, cmidi or rtalsa.
>
> Victor
> On 3 Feb 2014, at 21:47, Rory Walsh  wrote:
>
>> I gave up trying to get any fltk stuff building on windows ages ago,
>> but I can try again and get back to you. I didn't think the virtual
>> MIDI stuff was implemented the same way as a host using its own MIDI
>> is it, i.e, using
>>
>> csoundSetHostImplementedMIDIIO()
>> csoundSetExternalMidiInOpenCallback()
>> csoundSetExternalMidiReadCallback()
>> csoundSetExternalMidiOutOpenCallback()
>> csoundSetExternalMidiWriteCallback()
>>
>> I'l let you know if I mange to build the virtual keyboard.
>>
>> On 3 February 2014 21:35, Victor Lazzarini  wrote:
>>> But you could just run with a command-line csound and virtual midi, could you not?
>>> On 3 Feb 2014, at 21:30, Rory Walsh wrote:
>>>
>>>> Still results in a seg fault, but in a different place now. Not much
>>>> from the debugger(see below). The problem with creating a command line
>>>> version is that I use Csound::SetHostImplementedMIDIIO(true) so I'd
>>>> have to implement my own MIDI IO routines just to show the problem. If
>>>> I swap the following orc with k variables instead of S variables it
>>>> all works fine:
>>>>
>>>> chn_S "CABBAGE_CSD_PATH", 3
>>>>
>>>> instr 1
>>>> chnset "test", "CABBAGE_CSD_PATH"
>>>> Sname chnget "CABBAGE_CSD_PATH"
>>>> endin
>>>>
>>>> Strange one.
>>>>
>>>> 0  0x75148dd2  strcat
>>>> 1  0x07bcfdac  ??
>>>> 2  0x006de8b6  Csound::PerformKsmps
>>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\include\\csound.hpp
>>>> 351
>>>> 3  0x0047df5f  CabbagePluginAudioProcessor::processBlock
>>>>
>>>> On 3 February 2014 21:06, Victor Lazzarini  wrote:
>>>>> In any case, I've modified the code so that there is no reallocation if there is no need for it.
>>>>> Can you check if it made any difference?
>>>>>
>>>>> Victor
>>>>> On 3 Feb 2014, at 21:01, Victor Lazzarini wrote:
>>>>>
>>>>>> Sorry but again, I can't reproduce it here. I'm using the virtual midi device and triggering your
>>>>>> instrument and there are no issues. Can you test it in the command-line?
>>>>>>
>>>>>> Victor
>>>>>> On 3 Feb 2014, at 20:26, Rory Walsh wrote:
>>>>>>
>>>>>>> The reason I wanted update my build was to see if the issues with
>>>>>>> string channels was sorted on Windows. I'm still having a small issue
>>>>>>> when I try to retrieve a string channel on an instrument being
>>>>>>> controlled via MIDI. In the following instrument CABBAGE_CSD_PATH is
>>>>>>> set to a path and is definitely valid:
>>>>>>>
>>>>>>> instr 1
>>>>>>> Sname chnget "CABBAGE_CSD_PATH"
>>>>>>> endin
>>>>>>>
>>>>>>> But when the instrument is triggered by a MIDI note I get a segfault:
>>>>>>>
>>>>>>> 0  0x6c51ddb1  mfree
>>>>>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Engine\\memalloc.c
>>>>>>> 133
>>>>>>> 1  0x6c547d99  chnget_opcode_init_S
>>>>>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\OOps\\bus.c
>>>>>>> 753
>>>>>>> 2  0x6c51672b  MIDIinsert
>>>>>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Engine\\insert.c
>>>>>>> 567
>>>>>>> 3  0x6c5229d4  process_midi_event
>>>>>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Engine\\musmon.c
>>>>>>> 796
>>>>>>> 4  0x6c522dee  process_rt_event
>>>>>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Engine\\musmon.c
>>>>>>> 874
>>>>>>> 5  0x6c523c8b  sensevents
>>>>>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Engine\\musmon.c
>>>>>>> 1090
>>>>>>> 6  0x6c664d84  csoundPerformKsmps
>>>>>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Top\\csound.c
>>>>>>> 1617
>>>>>>> 7  0x006de836  Csound::PerformKsmps
>>>>>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\include\\csound.hpp
>>>>>>> 351
>>>>>>>
>>>>>>> If I trigger the instrument using another instrument I get no crash.
>>>>>>> Also, if I pass a file name with the full path from my host to Csound
>>>>>>> on a string channel, Csound seems to strip the '\'s from the string. I
>>>>>>> guess it's a windows thing, anyhow it's not a big deal, I can work
>>>>>>> around it.
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> Managing the Performance of Cloud-Based Applications
>>>>>>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
>>>>>>> Read the Whitepaper.
>>>>>>> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>> Dr Victor Lazzarini
>>>>>> Senior Lecturer
>>>>>> Dept. of Music
>>>>>> NUI Maynooth Ireland
>>>>>> tel.: +353 1 708 3545
>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> Managing the Performance of Cloud-Based Applications
>>>>>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
>>>>>> Read the Whitepaper.
>>>>>> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>> Dr Victor Lazzarini
>>>>> Senior Lecturer
>>>>> Dept. of Music
>>>>> NUI Maynooth Ireland
>>>>> tel.: +353 1 708 3545
>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Managing the Performance of Cloud-Based Applications
>>>>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
>>>>> Read the Whitepaper.
>>>>> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Managing the Performance of Cloud-Based Applications
>>>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
>>>> Read the Whitepaper.
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> Dr Victor Lazzarini
>>> Senior Lecturer
>>> Dept. of Music
>>> NUI Maynooth Ireland
>>> tel.: +353 1 708 3545
>>> Victor dot Lazzarini AT nuim dot ie
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Managing the Performance of Cloud-Based Applications
>>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
>>> Read the Whitepaper.
>>> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ------------------------------------------------------------------------------
>> Managing the Performance of Cloud-Based Applications
>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
>> Read the Whitepaper.
>> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> Managing the Performance of Cloud-Based Applications
> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
> Read the Whitepaper.
> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-02-04 10:50
FromVictor Lazzarini
SubjectRe: [Cs-dev] issues with string channels..
What about just using an external MIDI device? Another thing is to test your cabbage issue on Linux or OSX.
On 4 Feb 2014, at 10:23, Rory Walsh  wrote:

> Ok, so for now we just need to see if this is another windows only
> issue. In fact, I might be able to grab the fltk dlls from Mike's last
> windows build. That would save me from building it.
> 
> On 4 February 2014 10:21, Victor Lazzarini  wrote:
>> That shouldn't matter because the callbacks work exactly in the same way, whether they're implemented by the host or
>> by a MIDI module like pmidi, cmidi or rtalsa.
>> 
>> Victor
>> On 3 Feb 2014, at 21:47, Rory Walsh  wrote:
>> 
>>> I gave up trying to get any fltk stuff building on windows ages ago,
>>> but I can try again and get back to you. I didn't think the virtual
>>> MIDI stuff was implemented the same way as a host using its own MIDI
>>> is it, i.e, using
>>> 
>>> csoundSetHostImplementedMIDIIO()
>>> csoundSetExternalMidiInOpenCallback()
>>> csoundSetExternalMidiReadCallback()
>>> csoundSetExternalMidiOutOpenCallback()
>>> csoundSetExternalMidiWriteCallback()
>>> 
>>> I'l let you know if I mange to build the virtual keyboard.
>>> 
>>> On 3 February 2014 21:35, Victor Lazzarini  wrote:
>>>> But you could just run with a command-line csound and virtual midi, could you not?
>>>> On 3 Feb 2014, at 21:30, Rory Walsh wrote:
>>>> 
>>>>> Still results in a seg fault, but in a different place now. Not much
>>>>> from the debugger(see below). The problem with creating a command line
>>>>> version is that I use Csound::SetHostImplementedMIDIIO(true) so I'd
>>>>> have to implement my own MIDI IO routines just to show the problem. If
>>>>> I swap the following orc with k variables instead of S variables it
>>>>> all works fine:
>>>>> 
>>>>> chn_S "CABBAGE_CSD_PATH", 3
>>>>> 
>>>>> instr 1
>>>>> chnset "test", "CABBAGE_CSD_PATH"
>>>>> Sname chnget "CABBAGE_CSD_PATH"
>>>>> endin
>>>>> 
>>>>> Strange one.
>>>>> 
>>>>> 0  0x75148dd2  strcat
>>>>> 1  0x07bcfdac  ??
>>>>> 2  0x006de8b6  Csound::PerformKsmps
>>>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\include\\csound.hpp
>>>>> 351
>>>>> 3  0x0047df5f  CabbagePluginAudioProcessor::processBlock
>>>>> 
>>>>> On 3 February 2014 21:06, Victor Lazzarini  wrote:
>>>>>> In any case, I've modified the code so that there is no reallocation if there is no need for it.
>>>>>> Can you check if it made any difference?
>>>>>> 
>>>>>> Victor
>>>>>> On 3 Feb 2014, at 21:01, Victor Lazzarini wrote:
>>>>>> 
>>>>>>> Sorry but again, I can't reproduce it here. I'm using the virtual midi device and triggering your
>>>>>>> instrument and there are no issues. Can you test it in the command-line?
>>>>>>> 
>>>>>>> Victor
>>>>>>> On 3 Feb 2014, at 20:26, Rory Walsh wrote:
>>>>>>> 
>>>>>>>> The reason I wanted update my build was to see if the issues with
>>>>>>>> string channels was sorted on Windows. I'm still having a small issue
>>>>>>>> when I try to retrieve a string channel on an instrument being
>>>>>>>> controlled via MIDI. In the following instrument CABBAGE_CSD_PATH is
>>>>>>>> set to a path and is definitely valid:
>>>>>>>> 
>>>>>>>> instr 1
>>>>>>>> Sname chnget "CABBAGE_CSD_PATH"
>>>>>>>> endin
>>>>>>>> 
>>>>>>>> But when the instrument is triggered by a MIDI note I get a segfault:
>>>>>>>> 
>>>>>>>> 0  0x6c51ddb1  mfree
>>>>>>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Engine\\memalloc.c
>>>>>>>> 133
>>>>>>>> 1  0x6c547d99  chnget_opcode_init_S
>>>>>>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\OOps\\bus.c
>>>>>>>> 753
>>>>>>>> 2  0x6c51672b  MIDIinsert
>>>>>>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Engine\\insert.c
>>>>>>>> 567
>>>>>>>> 3  0x6c5229d4  process_midi_event
>>>>>>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Engine\\musmon.c
>>>>>>>> 796
>>>>>>>> 4  0x6c522dee  process_rt_event
>>>>>>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Engine\\musmon.c
>>>>>>>> 874
>>>>>>>> 5  0x6c523c8b  sensevents
>>>>>>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Engine\\musmon.c
>>>>>>>> 1090
>>>>>>>> 6  0x6c664d84  csoundPerformKsmps
>>>>>>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\Top\\csound.c
>>>>>>>> 1617
>>>>>>>> 7  0x006de836  Csound::PerformKsmps
>>>>>>>> C:\\Users\\Rory\\Documents\\SourceCode\\cabbageaudio\\csound6-git\\include\\csound.hpp
>>>>>>>> 351
>>>>>>>> 
>>>>>>>> If I trigger the instrument using another instrument I get no crash.
>>>>>>>> Also, if I pass a file name with the full path from my host to Csound
>>>>>>>> on a string channel, Csound seems to strip the '\'s from the string. I
>>>>>>>> guess it's a windows thing, anyhow it's not a big deal, I can work
>>>>>>>> around it.
>>>>>>>> 
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>> Managing the Performance of Cloud-Based Applications
>>>>>>>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
>>>>>>>> Read the Whitepaper.
>>>>>>>> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>> 
>>>>>>> Dr Victor Lazzarini
>>>>>>> Senior Lecturer
>>>>>>> Dept. of Music
>>>>>>> NUI Maynooth Ireland
>>>>>>> tel.: +353 1 708 3545
>>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> Managing the Performance of Cloud-Based Applications
>>>>>>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
>>>>>>> Read the Whitepaper.
>>>>>>> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>> 
>>>>>> Dr Victor Lazzarini
>>>>>> Senior Lecturer
>>>>>> Dept. of Music
>>>>>> NUI Maynooth Ireland
>>>>>> tel.: +353 1 708 3545
>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> ------------------------------------------------------------------------------
>>>>>> Managing the Performance of Cloud-Based Applications
>>>>>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
>>>>>> Read the Whitepaper.
>>>>>> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>> 
>>>>> ------------------------------------------------------------------------------
>>>>> Managing the Performance of Cloud-Based Applications
>>>>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
>>>>> Read the Whitepaper.
>>>>> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>> 
>>>> Dr Victor Lazzarini
>>>> Senior Lecturer
>>>> Dept. of Music
>>>> NUI Maynooth Ireland
>>>> tel.: +353 1 708 3545
>>>> Victor dot Lazzarini AT nuim dot ie
>>>> 
>>>> 
>>>> 
>>>> 
>>>> ------------------------------------------------------------------------------
>>>> Managing the Performance of Cloud-Based Applications
>>>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
>>>> Read the Whitepaper.
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> 
>>> ------------------------------------------------------------------------------
>>> Managing the Performance of Cloud-Based Applications
>>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
>>> Read the Whitepaper.
>>> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
>> 
>> ------------------------------------------------------------------------------
>> Managing the Performance of Cloud-Based Applications
>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
>> Read the Whitepaper.
>> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> ------------------------------------------------------------------------------
> Managing the Performance of Cloud-Based Applications
> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
> Read the Whitepaper.
> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net