Csound Csound-dev Csound-tekno Search About

[Csnd] FluidSynth from Ctcsound on ios

Date2019-08-26 16:44
FromSyl Morrison
Subject[Csnd] FluidSynth from Ctcsound on ios
Hi all, this could be a v stupid question so if it is I apologise in advance!
I'm working on a project which involves using soundfonts on iOS, I'm handling the csound end and another dev is handling the swift end. He's saying the FluidSynth opcodes won't work on iOS, so I was wondering if a workaround would be to bridge between swift and python, as I already have a python file triggering a csd. From some really light googling I found that it's possible to use python libs on iOS bridged with swift by including the headers for them in the build, would this be a viable option to let us use FluidSynth or am I fundamentally misunderstanding it?
Cheers, 
Syl
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

Date2019-08-26 17:01
FromVictor Lazzarini
SubjectRe: [Csnd] FluidSynth from Ctcsound on ios
The alternative to fluidsynth are the soundfont opcodes. They're not as sophisticated, but should do the basics.
I think they are available on iOS.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 26 Aug 2019, at 16:45, Syl Morrison  <honoonu@gmail.com> wrote:ve

Hi all, this could be a v stupid question so if it is I apologise in advance!
I'm working on a project which involves using soundfonts on iOS, I'm handling the csound end and another dev is handling the swift end. He's saying the FluidSynth opcodes won't work on iOS, so I was wondering if a workaround would be to bridge between swift and python, as I already have a python file triggering a csd. From some really light googling I found that it's possible to use python libs on iOS bridged with swift by including the headers for them in the build, would this be a viable option to let us use FluidSynth or am I fundamentally misunderstanding it?
Cheers, 
Syl
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

Date2019-08-26 17:35
FromSyl Morrison
SubjectRe: [Csnd] FluidSynth from Ctcsound on ios
Yeah I'm working on implementing them at the moment having some issues with the patching between instruments with them, where I'm using event to trigger a player instrument, and then setting the output of sfplay3 into a global variable and reading that into an always on instrument to filter it and send to an FX chain, but the issue is that when I set the output to a global it won't play chords because that audio stream gets overwritten, which I could get around using fluidOut!

On Mon, 26 Aug 2019, 17:01 Victor Lazzarini, <Victor.Lazzarini@mu.ie> wrote:
The alternative to fluidsynth are the soundfont opcodes. They're not as sophisticated, but should do the basics.
I think they are available on iOS.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 26 Aug 2019, at 16:45, Syl Morrison  <honoonu@gmail.com> wrote:ve

Hi all, this could be a v stupid question so if it is I apologise in advance!
I'm working on a project which involves using soundfonts on iOS, I'm handling the csound end and another dev is handling the swift end. He's saying the FluidSynth opcodes won't work on iOS, so I was wondering if a workaround would be to bridge between swift and python, as I already have a python file triggering a csd. From some really light googling I found that it's possible to use python libs on iOS bridged with swift by including the headers for them in the build, would this be a viable option to let us use FluidSynth or am I fundamentally misunderstanding it?
Cheers, 
Syl
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

Date2019-08-26 17:59
FromSteven Yi
SubjectRe: [Csnd] FluidSynth from Ctcsound on ios
For output to a global variable, maybe check that you are summing into
the variable rather than just setting the value. Something like:

ga1 += asigL
ga2 += asigR

rather than

ga1 = asigL
ga1 = asigR

and be sure to clear the global variable in the mixer instrument that
is reading it for processing, such as:

... do stuff with ga1 and ga2 ...
ga1 = 0
ga2 = 0


On Mon, Aug 26, 2019 at 12:35 PM Syl Morrison  wrote:
>
> Yeah I'm working on implementing them at the moment having some issues with the patching between instruments with them, where I'm using event to trigger a player instrument, and then setting the output of sfplay3 into a global variable and reading that into an always on instrument to filter it and send to an FX chain, but the issue is that when I set the output to a global it won't play chords because that audio stream gets overwritten, which I could get around using fluidOut!
>
> On Mon, 26 Aug 2019, 17:01 Victor Lazzarini,  wrote:
>>
>> The alternative to fluidsynth are the soundfont opcodes. They're not as sophisticated, but should do the basics.
>> I think they are available on iOS.
>>
>> Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy
>> Maynooth University
>> Ireland
>>
>> On 26 Aug 2019, at 16:45, Syl Morrison   wrote:ve
>>
>> Hi all, this could be a v stupid question so if it is I apologise in advance!
>> I'm working on a project which involves using soundfonts on iOS, I'm handling the csound end and another dev is handling the swift end. He's saying the FluidSynth opcodes won't work on iOS, so I was wondering if a workaround would be to bridge between swift and python, as I already have a python file triggering a csd. From some really light googling I found that it's possible to use python libs on iOS bridged with swift by including the headers for them in the build, would this be a viable option to let us use FluidSynth or am I fundamentally misunderstanding it?
>> Cheers,
>> Syl
>> 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

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

Date2019-08-26 18:12
FromSyl Morrison
SubjectRe: [Csnd] FluidSynth from Ctcsound on ios
Thanks so much, I got there in the end! Lucky for me its now crashing after like 20 seconds of running, it really makes you question your life choices,
Thanks again for your help guys, really appreciate it!

On Mon, 26 Aug 2019, 18:00 Steven Yi, <stevenyi@gmail.com> wrote:
For output to a global variable, maybe check that you are summing into
the variable rather than just setting the value. Something like:

ga1 += asigL
ga2 += asigR

rather than

ga1 = asigL
ga1 = asigR

and be sure to clear the global variable in the mixer instrument that
is reading it for processing, such as:

... do stuff with ga1 and ga2 ...
ga1 = 0
ga2 = 0


On Mon, Aug 26, 2019 at 12:35 PM Syl Morrison <honoonu@gmail.com> wrote:
>
> Yeah I'm working on implementing them at the moment having some issues with the patching between instruments with them, where I'm using event to trigger a player instrument, and then setting the output of sfplay3 into a global variable and reading that into an always on instrument to filter it and send to an FX chain, but the issue is that when I set the output to a global it won't play chords because that audio stream gets overwritten, which I could get around using fluidOut!
>
> On Mon, 26 Aug 2019, 17:01 Victor Lazzarini, <Victor.Lazzarini@mu.ie> wrote:
>>
>> The alternative to fluidsynth are the soundfont opcodes. They're not as sophisticated, but should do the basics.
>> I think they are available on iOS.
>>
>> Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy
>> Maynooth University
>> Ireland
>>
>> On 26 Aug 2019, at 16:45, Syl Morrison  <honoonu@gmail.com> wrote:ve
>>
>> Hi all, this could be a v stupid question so if it is I apologise in advance!
>> I'm working on a project which involves using soundfonts on iOS, I'm handling the csound end and another dev is handling the swift end. He's saying the FluidSynth opcodes won't work on iOS, so I was wondering if a workaround would be to bridge between swift and python, as I already have a python file triggering a csd. From some really light googling I found that it's possible to use python libs on iOS bridged with swift by including the headers for them in the build, would this be a viable option to let us use FluidSynth or am I fundamentally misunderstanding it?
>> Cheers,
>> Syl
>> 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

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