Re: [fluid-dev] Query regarding FluidSynth

2018-04-11 Thread Tom M.
There is no problem with your JNI code, it works absolutely fine against 
upstream recent git. However it seems that you are using VolcanoMobile's custom 
fork? This fork seems to have stripped some of fluidsynth components away. Dont 
know if that matters... anyway I cant support you any further here, sry.

Tom

___
fluid-dev mailing list
fluid-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/fluid-dev


Re: [fluid-dev] Query regarding FluidSynth

2018-04-11 Thread Swapnil Gupta
Okay .. thanks for your reply. I tried running this from a JNI file in my
Java code. The JNI function is paster here: https://pastebin.com/zU29PQck.
The problem I am facing is that it keeps on running inside
*while(fluid_player_get_status(player)
== FLUID_PLAYER_PLAYING) *indefinitely. Even after waiting for around 1 -2
minutes it keeps on running inside the loop. Please let me know if you see
some issue in the code. Thanks.

Regards.
Swapnil.

On Wed, Apr 11, 2018 at 2:57 PM, Tom M.  wrote:

> It is as fast as using the fast rendering via command line. That's why
> this section is entitled  "*Fast* file renderer for *non-realtime*
> rendering" and the short description below points out that this "is the
> *fastest* way to synthesize MIDI files." :)
>
> Tom
>



-- 
Swapnil Gupta
Music Technology Group.
Universitat Pompeu Fabra.
___
fluid-dev mailing list
fluid-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/fluid-dev


Re: [fluid-dev] Query regarding FluidSynth

2018-04-11 Thread Tom M.
It is as fast as using the fast rendering via command line. That's why this 
section is entitled  "*Fast* file renderer for *non-realtime* rendering" and 
the short description below points out that this "is the *fastest* way to 
synthesize MIDI files." :)

Tom

___
fluid-dev mailing list
fluid-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/fluid-dev


Re: [fluid-dev] Query regarding FluidSynth

2018-04-11 Thread Swapnil Gupta
Hi Tom,

I went over the code that you mentioned at
http://www.fluidsynth.org/api/index.html#FileRenderer and had a question
regarding this; when we are looping over while (fluid_player_get_status
(player)
== FLUID_PLAYER_PLAYING
),
does this mean that we will have to wait for the exact duration of playback
of the MIDI file before it is dumped as a file or is it a fast rendering
like through command line? Thank you.

Regards.
Swapnil.

On Wed, Apr 4, 2018 at 10:46 PM, Tom M.  wrote:

> Just added example code for the file renderer:
> http://www.fluidsynth.org/api/index.html#FileRenderer
>
> (changes should be pulic on 5th April approx. 10 AM UTC... unless
> Element reads this and triggers the cron job)
>
>
> Tom
>
> 2018-04-04 16:26 GMT+02:00 Marcus Weseloh :
> > Hi Swapnil,
> >
> > yes, it's possible via the API as well. Should work with something along
> > these lines (untested code, just for demonstration):
> >
> > fluid_player_t* player;
> > fluid_file_renderer_t* renderer;
> >
> > player = new_fluid_player(synth);
> > fluid_player_add(player, "/path/to/midifile.mid");
> >
> > fluid_settings_setint(settings, "synth.parallel-render", 1); /* needed
> for
> > fast-render */
> > fluid_settings_setstr(settings, "audio.file.name",
> "/path/to/output.wav");
> >
> > renderer = new_fluid_file_renderer (synth);
> >
> > while (fluid_player_get_status(player) == FLUID_PLAYER_PLAYING) {
> >   if (fluid_file_renderer_process_block(renderer)  !=  FLUID_OK) {
> > break;
> >   }
> > }
> >
> > delete_fluid_file_renderer(renderer);
> > delete_fluid_player(player);
> >
> >
> > Not shown is the synth and settings setup. Please see the /doc/example.c
> on
> > how to create and destroy Fluidsynth instances and settings objects.
> >
> > Cheers,
> >
> >
> >Marcus
> >
> >
> > ___
> > fluid-dev mailing list
> > fluid-dev@nongnu.org
> > https://lists.nongnu.org/mailman/listinfo/fluid-dev
> >
>
> ___
> fluid-dev mailing list
> fluid-dev@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/fluid-dev
>



-- 
Swapnil Gupta
Music Technology Group.
Universitat Pompeu Fabra.
___
fluid-dev mailing list
fluid-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/fluid-dev


Re: [fluid-dev] Query regarding FluidSynth

2018-04-06 Thread Tom M.
I cannot really help you to integrate fluidsynth to android. It has been 
discussed several times on the mailing list (just search the fluid-dev archive) 
but there was no real conlusion how to do it, much less a definite guide. I am 
convinced that fluidsynth can be run on android, by cross complining glib and 
then fluidsynth. But ofc it's tricky and time consuming. That's why several 
custom forks take short cuts, e.g. by getting rid of glib (like the one you 
listed) or using another build system than fluidsynth's, etc...


That's all I know
Tom

___
fluid-dev mailing list
fluid-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/fluid-dev


Re: [fluid-dev] Query regarding FluidSynth

2018-04-05 Thread Swapnil Gupta
Tom,

Thanks a lot for that :). I want to use this in my android app using
JNI/NDK. Do you know of any definitive guide that helps me integrate
fluidsynth with android. I have come across a github project
https://github.com/VolcanoMobile/fluidsynth-android and it seems that I can
use this in my android app. Can anyone here here vouch for it? Thank you.

Regards.
Swapnil.

On Wed, Apr 4, 2018 at 10:46 PM, Tom M.  wrote:

> Just added example code for the file renderer:
> http://www.fluidsynth.org/api/index.html#FileRenderer
>
> (changes should be pulic on 5th April approx. 10 AM UTC... unless
> Element reads this and triggers the cron job)
>
>
> Tom
>
> 2018-04-04 16:26 GMT+02:00 Marcus Weseloh :
> > Hi Swapnil,
> >
> > yes, it's possible via the API as well. Should work with something along
> > these lines (untested code, just for demonstration):
> >
> > fluid_player_t* player;
> > fluid_file_renderer_t* renderer;
> >
> > player = new_fluid_player(synth);
> > fluid_player_add(player, "/path/to/midifile.mid");
> >
> > fluid_settings_setint(settings, "synth.parallel-render", 1); /* needed
> for
> > fast-render */
> > fluid_settings_setstr(settings, "audio.file.name",
> "/path/to/output.wav");
> >
> > renderer = new_fluid_file_renderer (synth);
> >
> > while (fluid_player_get_status(player) == FLUID_PLAYER_PLAYING) {
> >   if (fluid_file_renderer_process_block(renderer)  !=  FLUID_OK) {
> > break;
> >   }
> > }
> >
> > delete_fluid_file_renderer(renderer);
> > delete_fluid_player(player);
> >
> >
> > Not shown is the synth and settings setup. Please see the /doc/example.c
> on
> > how to create and destroy Fluidsynth instances and settings objects.
> >
> > Cheers,
> >
> >
> >Marcus
> >
> >
> > ___
> > fluid-dev mailing list
> > fluid-dev@nongnu.org
> > https://lists.nongnu.org/mailman/listinfo/fluid-dev
> >
>
> ___
> fluid-dev mailing list
> fluid-dev@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/fluid-dev
>



-- 
Swapnil Gupta
Music Technology Group.
Universitat Pompeu Fabra.
___
fluid-dev mailing list
fluid-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/fluid-dev


Re: [fluid-dev] Query regarding FluidSynth

2018-04-04 Thread Tom M.
Just added example code for the file renderer:
http://www.fluidsynth.org/api/index.html#FileRenderer

(changes should be pulic on 5th April approx. 10 AM UTC... unless
Element reads this and triggers the cron job)


Tom

2018-04-04 16:26 GMT+02:00 Marcus Weseloh :
> Hi Swapnil,
>
> yes, it's possible via the API as well. Should work with something along
> these lines (untested code, just for demonstration):
>
> fluid_player_t* player;
> fluid_file_renderer_t* renderer;
>
> player = new_fluid_player(synth);
> fluid_player_add(player, "/path/to/midifile.mid");
>
> fluid_settings_setint(settings, "synth.parallel-render", 1); /* needed for
> fast-render */
> fluid_settings_setstr(settings, "audio.file.name", "/path/to/output.wav");
>
> renderer = new_fluid_file_renderer (synth);
>
> while (fluid_player_get_status(player) == FLUID_PLAYER_PLAYING) {
>   if (fluid_file_renderer_process_block(renderer)  !=  FLUID_OK) {
> break;
>   }
> }
>
> delete_fluid_file_renderer(renderer);
> delete_fluid_player(player);
>
>
> Not shown is the synth and settings setup. Please see the /doc/example.c on
> how to create and destroy Fluidsynth instances and settings objects.
>
> Cheers,
>
>
>Marcus
>
>
> ___
> fluid-dev mailing list
> fluid-dev@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/fluid-dev
>

___
fluid-dev mailing list
fluid-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/fluid-dev


Re: [fluid-dev] Query regarding FluidSynth

2018-04-04 Thread Marcus Weseloh
Hi Swapnil,

yes, it's possible via the API as well. Should work with something along
these lines (untested code, just for demonstration):

fluid_player_t* player;
fluid_file_renderer_t* renderer;

player = new_fluid_player(synth);
fluid_player_add(player, "/path/to/midifile.mid");

fluid_settings_setint(settings, "synth.parallel-render", 1); /* needed for
fast-render */
fluid_settings_setstr(settings, "audio.file.name", "/path/to/output.wav");

renderer = new_fluid_file_renderer (synth);

while (fluid_player_get_status(player) == FLUID_PLAYER_PLAYING) {
  if (fluid_file_renderer_process_block(renderer)  !=  FLUID_OK) {
break;
  }
}

delete_fluid_file_renderer(renderer);
delete_fluid_player(player);


Not shown is the synth and settings setup. Please see the /doc/example.c on
how to create and destroy Fluidsynth instances and settings objects.

Cheers,


   Marcus
___
fluid-dev mailing list
fluid-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/fluid-dev


Re: [fluid-dev] Query regarding FluidSynth

2018-04-04 Thread Mark Knoop
At 18:03 on 04 Apr 2018, Swapnil Gupta wrote:
>I guess everyone id doing great. I am Swapnil and I work with a startup
>named MusicMuni Labs Pvt Ltd . I have been
>exploring softwares that can help me get a wav file generated using a
>MIDI file and soundfonts. I came across fluidsynth and was wondering
>if it helps in achieving this goal?

This is exactly what fluidsynth does.

fluidsynth -ni -F out.wav soundfont.sf2 in.midi

Read the man page for more information.

-- 
Mark Knoop

___
fluid-dev mailing list
fluid-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/fluid-dev


Re: [fluid-dev] Query regarding FluidSynth

2018-04-04 Thread Swapnil Gupta
Hi Marcus,

Thank you for your response. I want to integrate fluidsynth in my android
application. So, does the api also allows to do something like this ? Thank
you.

Regards.
Swapnil.

On Wed, Apr 4, 2018 at 6:52 PM, Marcus Weseloh  wrote:

> Hi Swapnil,
>
> Fluidsynth can do what you ask. You can use the following command line:
>
> fluidsynth /path/to/soundfont.sf2 /path/to/midifile.mid
> --fast-render=/path/to/output.wav
>
> You can also specify the audio format with --audio-file-format if
> Fluidsynth has been compiled with libsndfile support.
>
> For more info, please have a look at the manual or the man page:
> https://github.com/FluidSynth/fluidsynth/wiki/UserManual
>
> Cheers,
>
>Marcus
>
> 2018-04-04 14:50 GMT+02:00 Swapnil Gupta :
>
>> Hi Aron,
>>
>> Thanks for the response. I might be a little unclear in my query. What I
>> want is given a MIDI file and a soundfont, I want to get a wav file out of
>> that. Not sure if this is what you answered in your last email. Thank you.
>>
>> Regards.
>> Swapnil.
>>
>> On Wed, Apr 4, 2018 at 6:18 PM, Aaron Laws  wrote:
>>
>>> On Wed, Apr 4, 2018 at 8:33 AM, Swapnil Gupta <
>>> swapnilgupta.ii...@gmail.com> wrote:
>>>
 Hey guys,

 I guess everyone id doing great. I am Swapnil and I work with a startup
 named MusicMuni Labs Pvt Ltd . I have been
 exploring softwares that can help me get a wav file generated using a MIDI
 file and soundfonts. I came across fluidsynth and was wondering if it helps
 in achieving this goal?

 Regards.
 --
 Swapnil Gupta
 Technical Lead
 MusicMuni Labs Pvt Ltd

>>>
>>> Fluidsynth can help you play back that wave file that you've made into a
>>> midi definition. To create the the soundfont, you'll need a soundfont
>>> creator (polyphone, swami, etc.). Good luck!
>>>
>>> In Christ,
>>> Aaron Laws
>>>
>>> ___
>>> fluid-dev mailing list
>>> fluid-dev@nongnu.org
>>> https://lists.nongnu.org/mailman/listinfo/fluid-dev
>>>
>>>
>>
>>
>> --
>> Swapnil Gupta
>> Music Technology Group.
>> Universitat Pompeu Fabra.
>>
>> ___
>> fluid-dev mailing list
>> fluid-dev@nongnu.org
>> https://lists.nongnu.org/mailman/listinfo/fluid-dev
>>
>>
>
> ___
> fluid-dev mailing list
> fluid-dev@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/fluid-dev
>
>


-- 
Swapnil Gupta
Music Technology Group.
Universitat Pompeu Fabra.
___
fluid-dev mailing list
fluid-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/fluid-dev


Re: [fluid-dev] Query regarding FluidSynth

2018-04-04 Thread Aaron Laws
On Wed, Apr 4, 2018 at 9:22 AM, Marcus Weseloh  wrote:

> Hi Swapnil,
>
> Fluidsynth can do what you ask. You can use the following command line:
>
> fluidsynth /path/to/soundfont.sf2 /path/to/midifile.mid
> --fast-render=/path/to/output.wav
>
> You can also specify the audio format with --audio-file-format if
> Fluidsynth has been compiled with libsndfile support.
>
> For more info, please have a look at the manual or the man page:
> https://github.com/FluidSynth/fluidsynth/wiki/UserManual
>
> Cheers,
>
>Marcus
>

Shows what I know. Thanks, Marcus!

In Christ,
Aaron Laws
___
fluid-dev mailing list
fluid-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/fluid-dev


Re: [fluid-dev] Query regarding FluidSynth

2018-04-04 Thread Marcus Weseloh
Hi Swapnil,

Fluidsynth can do what you ask. You can use the following command line:

fluidsynth /path/to/soundfont.sf2 /path/to/midifile.mid
--fast-render=/path/to/output.wav

You can also specify the audio format with --audio-file-format if
Fluidsynth has been compiled with libsndfile support.

For more info, please have a look at the manual or the man page:
https://github.com/FluidSynth/fluidsynth/wiki/UserManual

Cheers,

   Marcus

2018-04-04 14:50 GMT+02:00 Swapnil Gupta :

> Hi Aron,
>
> Thanks for the response. I might be a little unclear in my query. What I
> want is given a MIDI file and a soundfont, I want to get a wav file out of
> that. Not sure if this is what you answered in your last email. Thank you.
>
> Regards.
> Swapnil.
>
> On Wed, Apr 4, 2018 at 6:18 PM, Aaron Laws  wrote:
>
>> On Wed, Apr 4, 2018 at 8:33 AM, Swapnil Gupta <
>> swapnilgupta.ii...@gmail.com> wrote:
>>
>>> Hey guys,
>>>
>>> I guess everyone id doing great. I am Swapnil and I work with a startup
>>> named MusicMuni Labs Pvt Ltd . I have been
>>> exploring softwares that can help me get a wav file generated using a MIDI
>>> file and soundfonts. I came across fluidsynth and was wondering if it helps
>>> in achieving this goal?
>>>
>>> Regards.
>>> --
>>> Swapnil Gupta
>>> Technical Lead
>>> MusicMuni Labs Pvt Ltd
>>>
>>
>> Fluidsynth can help you play back that wave file that you've made into a
>> midi definition. To create the the soundfont, you'll need a soundfont
>> creator (polyphone, swami, etc.). Good luck!
>>
>> In Christ,
>> Aaron Laws
>>
>> ___
>> fluid-dev mailing list
>> fluid-dev@nongnu.org
>> https://lists.nongnu.org/mailman/listinfo/fluid-dev
>>
>>
>
>
> --
> Swapnil Gupta
> Music Technology Group.
> Universitat Pompeu Fabra.
>
> ___
> fluid-dev mailing list
> fluid-dev@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/fluid-dev
>
>
___
fluid-dev mailing list
fluid-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/fluid-dev


Re: [fluid-dev] Query regarding FluidSynth

2018-04-04 Thread Aaron Laws
On Wed, Apr 4, 2018 at 8:50 AM, Swapnil Gupta 
wrote:

> Hi Aron,
>
> Thanks for the response. I might be a little unclear in my query. What I
> want is given a MIDI file and a soundfont, I want to get a wav file out of
> that. Not sure if this is what you answered in your last email. Thank you.
>
> Regards.
> Swapnil.
>

That is a different query, but just as possible. However, fluidsynth won't
help you with this endeavor to my knowledge. You'll want a soundfont
editing software such as swami or polyphone.

In Christ,
Aaron Laws
___
fluid-dev mailing list
fluid-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/fluid-dev


Re: [fluid-dev] Query regarding FluidSynth

2018-04-04 Thread Swapnil Gupta
Hi Aron,

Thanks for the response. I might be a little unclear in my query. What I
want is given a MIDI file and a soundfont, I want to get a wav file out of
that. Not sure if this is what you answered in your last email. Thank you.

Regards.
Swapnil.

On Wed, Apr 4, 2018 at 6:18 PM, Aaron Laws  wrote:

> On Wed, Apr 4, 2018 at 8:33 AM, Swapnil Gupta <
> swapnilgupta.ii...@gmail.com> wrote:
>
>> Hey guys,
>>
>> I guess everyone id doing great. I am Swapnil and I work with a startup
>> named MusicMuni Labs Pvt Ltd . I have been
>> exploring softwares that can help me get a wav file generated using a MIDI
>> file and soundfonts. I came across fluidsynth and was wondering if it helps
>> in achieving this goal?
>>
>> Regards.
>> --
>> Swapnil Gupta
>> Technical Lead
>> MusicMuni Labs Pvt Ltd
>>
>
> Fluidsynth can help you play back that wave file that you've made into a
> midi definition. To create the the soundfont, you'll need a soundfont
> creator (polyphone, swami, etc.). Good luck!
>
> In Christ,
> Aaron Laws
>
> ___
> fluid-dev mailing list
> fluid-dev@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/fluid-dev
>
>


-- 
Swapnil Gupta
Music Technology Group.
Universitat Pompeu Fabra.
___
fluid-dev mailing list
fluid-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/fluid-dev


Re: [fluid-dev] Query regarding FluidSynth

2018-04-04 Thread Aaron Laws
On Wed, Apr 4, 2018 at 8:33 AM, Swapnil Gupta 
wrote:

> Hey guys,
>
> I guess everyone id doing great. I am Swapnil and I work with a startup
> named MusicMuni Labs Pvt Ltd . I have been
> exploring softwares that can help me get a wav file generated using a MIDI
> file and soundfonts. I came across fluidsynth and was wondering if it helps
> in achieving this goal?
>
> Regards.
> --
> Swapnil Gupta
> Technical Lead
> MusicMuni Labs Pvt Ltd
>

Fluidsynth can help you play back that wave file that you've made into a
midi definition. To create the the soundfont, you'll need a soundfont
creator (polyphone, swami, etc.). Good luck!

In Christ,
Aaron Laws
___
fluid-dev mailing list
fluid-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/fluid-dev