Search found 326 matches

by PaulDaMacMan
Fri Dec 04, 2020 10:17 pm
Forum: Community Projects
Topic: MIDI Synthesizer with FluidSynth
Replies: 11
Views: 1802

Re: MIDI Synthesizer with FluidSynth

Great work. WOuld be nice if we could build VST's with LC. if you want to use FluidSynth as a VST Plug-in, this guy already wrapped fluidSynth as a VST with the JUCE library, available free here: https://github.com/Birch-san/juicysfplugin If someone would want to wrap Windows VST plug-in API in LCB...
by PaulDaMacMan
Fri Dec 04, 2020 10:02 pm
Forum: Community Projects
Topic: MIDI Synthesizer with FluidSynth
Replies: 11
Views: 1802

Re: MIDI Synthesizer with FluidSynth

Hi golife, I started this lib working on windows with the basic functions (on my free time), PaulDaMacMan made some really great improvements (working on Mac), but basically it should work on windows, not sure if the new improvements made by PaulDaMacMan are compatible, but I will dedicate some tim...
by PaulDaMacMan
Wed Nov 25, 2020 1:37 am
Forum: Community Projects
Topic: MIDI Synthesizer with FluidSynth
Replies: 11
Views: 1802

Re: MIDI Synthesizer with FluidSynth

MIDI Synthesizer with FluidSynthQuote prometheus by prometheus » Thu Oct 29, 2020 7:54 pm LCB lib to wrap FLuidSynth (already working) I've pushed this a bit further in my repo: https://github.com/PaulMcClernan/lcb_fluidSynth I Made a video of the progress I've made! NOTE: That the hard crash at th...
by PaulDaMacMan
Tue Nov 24, 2020 6:31 pm
Forum: LiveCode Builder
Topic: Script Access, Post, Send, Execute, BUGs?
Replies: 1
Views: 358

Re: Script Access, Post, Send, Execute, BUGs?

https://www.youtube.com/watch?v=psR1dJ0PiNA At the end of the video you see me switch the MIDI IN Post messages target ScriptObject to my Piano Widget, and the whole thing crashes after rendering a handful of notes. The on-screen piano in the upper half of the screen "3OctavePiano" is the rebuilt a...
by PaulDaMacMan
Tue Nov 24, 2020 2:51 am
Forum: LiveCode Builder
Topic: Script Access, Post, Send, Execute, BUGs?
Replies: 1
Views: 358

Script Access, Post, Send, Execute, BUGs?

Here goes... I have an LCB library that I'm working on (actually several) that sends a lot of "Post" messages back to the engine, sometimes rapidly. What happens intermittently is that an LCB error gets thrown "Script Access Not Allowed" when there's a message "post" called that tries to set a prope...
by PaulDaMacMan
Fri Nov 20, 2020 10:53 pm
Forum: LiveCode Builder
Topic: Need Some Help with Callbacks (again) & Handler Type Def etc.
Replies: 4
Views: 272

Re: Need Some Help with Callbacks (again) & Handler Type Def etc.

OK, so if I don't try to log incoming MIDI Messages in the LCB Extension Builder window, and instead just pass messages to another function in the FluidSynth Library, it doesn't crash at all, solid! I'm thinking there is no dangling pointer crash coming from my LCB Wrapper or the FluidSynth lib, It ...
by PaulDaMacMan
Thu Nov 19, 2020 7:14 pm
Forum: LiveCode Builder
Topic: Need Some Help with Callbacks (again) & Handler Type Def etc.
Replies: 4
Views: 272

Re: Need Some Help with Callbacks (again) & Handler Type Def etc.

DAMN IT! It crashes the engine when flooding the input with lots of note messages, exactly like my CoreMIDI LCB Wrapper Lib does. :( I'm thinking this is what they call a "Dangling Pointer", the callback is using the same pointer over and over again, and then something releases it, then when it trie...
by PaulDaMacMan
Thu Nov 19, 2020 7:08 pm
Forum: LiveCode Builder
Topic: Need Some Help with Callbacks (again) & Handler Type Def etc.
Replies: 4
Views: 272

Re: Need Some Help with Callbacks (again) & Handler Type Def etc.

AHHH HA!!! My LCB Callback handler wasn't returning the Cint was expecting and needed that OK signal to continue! It's working now, yeah! Here is the working code for reference: public foreign handler type handle_midi_event_func_t( in pMyDataPtr as optional Pointer, in pMIDIEvent as Pointer) returns...
by PaulDaMacMan
Thu Nov 19, 2020 6:57 pm
Forum: LiveCode Builder
Topic: Need Some Help with Callbacks (again) & Handler Type Def etc.
Replies: 4
Views: 272

Re: Need Some Help with Callbacks (again) & Handler Type Def etc.

I got it working (MIDI IN) BUT it only works once (one NoteOn message), and then stops working after that (no NoteOff message).
by PaulDaMacMan
Thu Nov 19, 2020 6:44 pm
Forum: LiveCode Builder
Topic: Need Some Help with Callbacks (again) & Handler Type Def etc.
Replies: 4
Views: 272

Need Some Help with Callbacks (again) & Handler Type Def etc.

Entending LiveCode doc says this about C callback functions: Callbacks When used in the context of a foreign handler definition, a foreign handler type will cause automatic bridging of the LCB handler to a C function pointer which can be called directly by the native code. The function pointers crea...
by PaulDaMacMan
Mon Nov 16, 2020 11:14 pm
Forum: Community Projects
Topic: MIDI Synthesizer with FluidSynth
Replies: 11
Views: 1802

Re: MIDI Synthesizer with FluidSynth

I just got back to work and tested. The macOS build in my GitHub repo has now been tested on 10.14.6 (non-admin account without any Homebrew/MacPorts packages installed), another (my son's Mac) 10.14.6, and two other mac's running 10.12.6 and 10.10.5. Everything seems to work so far except for loadi...
by PaulDaMacMan
Mon Nov 16, 2020 9:51 pm
Forum: LiveCode Builder
Topic: How to Wrap libraries (.dylib) built for macOS (Brew,MacPorts,etc.)
Replies: 1
Views: 409

Re: How to Wrap libraries (.dylib) built for macOS (Brew,MacPorts,etc.)

This is the page that helped me figure it out: https://medium.com/@donblas/fun-with-r ... e41ae86172
And then later I noticed that Trevor Devore already had this figured out for his LCB pocketsphinx wrapper.
by PaulDaMacMan
Sat Nov 14, 2020 10:24 am
Forum: LiveCode Builder
Topic: How to Wrap libraries (.dylib) built for macOS (Brew,MacPorts,etc.)
Replies: 1
Views: 409

How to Wrap libraries (.dylib) built for macOS (Brew,MacPorts,etc.)

For once I thought I would actually post an answer instead of a question! First the backstory: WAY BACK in 2015 at the dawn of LiveCode Builder's FFI when I was thinking of trying to wrap the cross-platform FluidSynth library, @n.allan managed to get a basic wrapper going for the Windows version of ...
by PaulDaMacMan
Fri Nov 13, 2020 3:38 pm
Forum: Feature Proposals
Topic: Replace LiveCode Script with JavaScript, forever
Replies: 96
Views: 20221

Re: Replace LiveCode Script with JavaScript, forever

the host-OS-provided options returned with the alternateLanguages function - Well, yeah: - Screen Shot 2020-08-11 at 7.17.11 pm.png - Seems like there should be at least one more on that list. JavaScript for Automation (JXA) is supposed to be a full fledged OSA scripting language on macOS since 10....
by PaulDaMacMan
Thu Nov 12, 2020 9:49 pm
Forum: Community Projects
Topic: MIDI Synthesizer with FluidSynth
Replies: 11
Views: 1802

Re: MIDI Synthesizer with FluidSynth

Also, your read me page points to the version 1.3 of my Piano Widget. There was a mistake in that version where "lock to scale/mode" doesn't accept "3H","WH", or "HW" for 3 half-steps in the scale/mode formula so some scales (Blues Scale) don't get set properly in that format (if you set it with Not...

Go to advanced search