Search found 95 matches

by soerenkj
Thu Nov 27, 2014 7:39 pm
Forum: Coding Questions
Topic: ExamineKeyboard() & ScintillaGadget
Replies: 1
Views: 1367

ExamineKeyboard() & ScintillaGadget

On Windows this code works fine but on OSX I am not able to input text in the Scintilla gadget - unless I remove the call to ExamineKeyboard().


Procedure ScintillaCallBack(Gadget, *n.SCNotification)

EndProcedure

OpenWindow(0, 0, 0, 600, 500, "OSX Bug?")

InitSprite()
InitKeyboard ...
by soerenkj
Sun Nov 23, 2014 10:29 pm
Forum: Coding Questions
Topic: ProcedureC?
Replies: 7
Views: 2996

Re: ProcedureC?

Yes it looks similar. Interesting. I don't really know about cdecl and stdecl, but I know that if I use 'Procedure' instead of 'ProcedureC' nothing at all works..
by soerenkj
Sun Nov 23, 2014 11:05 am
Forum: Coding Questions
Topic: ProcedureC?
Replies: 7
Views: 2996

Re: ProcedureC?

More calls to CheckKey actually does not imply more calls to csoundInputMessage, check the logic. Also, the crashes only happen if the callback is also defined.
NB. I have communicated with the Csound developers and they seem confident that the error is not caused by Csound..

Are you able to ...
by soerenkj
Sat Nov 22, 2014 10:05 pm
Forum: Coding Questions
Topic: ProcedureC?
Replies: 7
Views: 2996

Re: ProcedureC?

If there is only one call to CheckKey the application does not crash. The code here emulates a 'real' situation where I would have to check several different keys, one at a time.
by soerenkj
Sat Nov 22, 2014 4:23 pm
Forum: Coding Questions
Topic: ProcedureC?
Replies: 7
Views: 2996

ProcedureC?

With Windows 7 Pro and PureBasic 5.31 the following steps are causing my application to crash:

1. Save the code below into a folder together with a short stereo sample named 'test.wav' and the Csound library dll (download and run Setup_Csound6_6.03.2.exe from http://sourceforge.net/projects/csound ...
by soerenkj
Wed Nov 12, 2014 4:36 pm
Forum: Coding Questions
Topic: Including library in .exe
Replies: 3
Views: 2027

Re: Including library in .exe

Thanks, look interesting! Does it also work with .dylib files (OSX)?
by soerenkj
Wed Nov 12, 2014 2:02 pm
Forum: Coding Questions
Topic: Including library in .exe
Replies: 3
Views: 2027

Including library in .exe

Dear all,
I am trying to figure out if it is possible to include a third party library into an .exe I am builing?
I have tried downloading a library (Csound) which is distributed as a .dll file, and I managed to generate a .lib file from that .dll file. So now I can import/link the .lib statically ...
by soerenkj
Tue Mar 22, 2011 9:59 am
Forum: Feature Requests and Wishlists
Topic: Google Native Client
Replies: 2
Views: 1645

Re: Google Native Client

I kind of stopped using PureBasic, but I will definitely be using it again if it can be used with Google's Native Client.
by soerenkj
Mon Sep 04, 2006 1:32 pm
Forum: Coding Questions
Topic: Music tracker / sample sequencer engine - optimization
Replies: 2
Views: 1202

Hello again..
Has anyone tried to run my code? Any comments are welcome..
I'm sure someone here must have tried to code his own music software.. some question, for example:
Do you have good experiences using some other api than DirectSound? Have you worked with DSP on a non-float representation of a ...
by soerenkj
Wed Aug 30, 2006 11:17 am
Forum: Coding Questions
Topic: Music tracker / sample sequencer engine - optimization
Replies: 2
Views: 1202

Also, does anyone have an idea of optimal settings for #BytesPerDSoundBuffer and #Notifications (the size of the DirectSound buffer and the number of notifications directsound will create each time the buffer is played back)? Right now the buffer contains around 0.1 seconds of sound and ...
by soerenkj
Wed Aug 30, 2006 11:00 am
Forum: Coding Questions
Topic: Music tracker / sample sequencer engine - optimization
Replies: 2
Views: 1202

Music tracker / sample sequencer engine - optimization

The code below will build a sequence of samples (a beat rhythm) and play it back, mixing the samples. To run the code you need DirectSound 8, PureBasic 4 and three drum samples (see the code).

I would like someone to review this code and give me some ideas on how I might be able to refine it or do ...
by soerenkj
Sun Jun 11, 2006 9:27 am
Forum: Coding Questions
Topic: word to float to word conversion (DSP for using VST effects)
Replies: 12
Views: 2798

I am glad that the method I understand is also the better one! (though as I said I did not measure any clear difference between floating point multiply and divide)
I prefer not using some MMX stuff that not all user have. (or do all modern processors have that?)
by soerenkj
Sun Jun 11, 2006 9:24 am
Forum: Coding Questions
Topic: VST Hosting: processing a .wav-file
Replies: 3
Views: 1673

Thanks KarLKoX, but I do not understand your syntax with '<32767>' and my compiler doesn't either.. and isn't there also missing an 'EndIf'? (is this the problem with PhpBB that you mention?)
by soerenkj
Sat Jun 10, 2006 11:24 pm
Forum: Coding Questions
Topic: VST Hosting: processing a .wav-file
Replies: 3
Views: 1673

VST Hosting: processing a .wav-file

I am trying to make a VST host that will use a VST plugin to process a 44100, 16 bit, stereo .wav-file. However, when I call the plugin's standard method 'processReplacing()' the file does not seem to get processed correctly - with some plugins the sound gets distorted, with others processReplacing ...
by soerenkj
Sat Jun 10, 2006 11:05 pm
Forum: Coding Questions
Topic: word to float to word conversion (DSP for using VST effects)
Replies: 12
Views: 2798

@dioxin: I made a small test of the multiply/divide thing and to me it does not seem that there is a difference in efficiency (and the PB compiler does not seem to do the optimization of rewriting divide to multiply - I checked the assembly code generated by the compiler)

@Rescator: I found that ...