mixing

Organizing the source code base when mixing two or more langauges (like Java and C++)

I ran into a problem a few days ago when I had to introduce C++ files into a Java project. It started with a need to measure the CPU usage of the Java process and it was decided that the way to go was to use JNI to call out to a native library (a shared library on a Unix machine) written in C. The problem was to find an appropriate place...

Best way to access Java classes from C++? (better than using JNI directly)

I have to integrate a large Java library in a quite large C++ application. A solution is to use JNI but this requires to hand code all the classes. Python has, for example, a wonderful solution with JPype (http://jpype.sourceforge.net/) that automatizes the process (although the same solution cannot be applied to C++ due to C++ and Pytho...

How to mix colors "naturally" with C#?

I have to mix some colors in a natural way. This means blue + yellow = green blue + red = purple and so on. I got the colors as RGB-Values. When I try to mix them I got the right "RGB"-results like green + red = yellow yellow + blue = white but not the right "natural-wet-paint"-results. Any good idea how to mix RGB in a natural wa...

Mixing Static Libraries of C Code built from different versions of Visual Studio 2002 and later

I have a static linkable library of C and Fortran routines compiled and linked together using the Visual Studio 2002 C (v7.0) Compiler and the Intel Fortran 9.0.018 Compiler. The C code in my library calls and links to the Microsoft C-RunTime (MSCRT) 2002 static libraries (single-threaded). I believe the actual version number of the 200...

Can you mix the JVM languages? ie: Groovy & Clojure

I understand that you can easily mix groovy&java, clojure&java, whateverJvmLang&java. Does this also mean I can have clojure and groovy code interact as well? If I use Grails or jRoR, can I also make use of clojure in that environment? ...

When to mix languages?

Hi SO-Followers, What are some situations where languages should be mixed? I'm not talking about using ASP.NET with C# and HTML or an application written in C accessing a SQL database through SQL queries. I'm talking about things like mixing C++ with Fortran or Ada with Haskell etc. for example. [EDIT] First of all: thank you for all...

Mix multiple sounds in flash

I have several sound objects in flash, I would like to mix different points in these sound files to create a single masterpiece and save it as an mp3. I've seen various "mixer" applications online and would like to know what area(s) to look at to be able to do this myself. ...

Is there a way to mix MonoTouch and Objective-C?

I'd like to know if there is a way to mix C# and Obj-C code in one project. Specifically, I'd like to use Cocos2D for my UI in Obj-C and call some MonoTouch C#-Library that does some computations and get some values back. Is there a way to do this? Or maybe the other way around, i. e. building in MonoTouch and calling Cocos2D-functions? ...

Library for software mixing of sound (wave) streams

I would like to mix several sound (wave) streams into one. Each stream might have a different format (bits/sample, channel count, etc.), so conversion is needed also. I am looking for a library to do this, which I can link into my VS C++ project, before jumping in and implementing my own. ...

Get the result of a Shell Commands within C

Hi all! I'm trying to find a function to call a system command (shell command) and get back its result in a C program. I only found functions like system but these don't return the result of the command. I just know it in perl : my $results = `my shell command ; Thanks! ...

Mixing Audio Files

Hi, I have few audio files: f_1 - length 10 sec f_2 - length 3 sec f_3 - length 1 sec What I need is to find a way to mix(merge) f2 and f3 at particular section in f_1 (i.e. position which is equal to 6 sec) I was looking at Audio examples but they don't help me much so any ideas\references\ documentation that might help? Many T...

Playing multiple MP3 songs simultaneously on iPhone

Hello ! I would like to do a mixing table on iPhone. I have the different tracks of one song and I want to play them on iPhone simultaneously. These songs are MP3 files, I want to be able to play up to 15 tracks simultaneously, and changing volume, muting some tracks, navigating in the total song, etc. Apple MultichannelMixer example ...

Mixing sound files on an iPhone

I've got a couple of wav files and possibly a mp3 that I'd like to mix down to a single wav or mp3-file. I'm using C/C++/Obj-C (iPhone). I have really no experience with this sort of thing. If anyone could give me some pointers, I would be very grateful. Basically what I want to do is similar things like for example Audacity can do, but...

Mixing JSP/HTML any new features or suggestions

Hi all, I guess my questions are not well described. Is this coding style (like the example below) still recommended? Aren't there any new methods of mixing html with jsp? I see some examples with the blockquote < script > < /script >. I guess that's for seperating code blockwise and not always the best way. Any suggestions, let's say...

Mix RGB colors (L*a*b*)

Hello! Basically I want two mix two colours color1 and color2. Since simple calculation's bring up stuff like blue+yellow = grey ((color1.r + color2.r)/2 etc) i did some research and found that apparently mixing colors in order for the mixed color to look like we expect it too (e.g. blue+yellow = green) isn't that straight forward. Wha...

Mingling C++ classes with Objective C classes

I am using the iphone SDK and coding primarily in C++ while using parts of the SDK in obj-c. Is it possible to designate a C++ class in situations where an obj-c class is needed? For instance: 1) when setting delegates to obj-c objects. I cannot make a C++ class derive from a Delegate protocol so this and possibly other reasons prev...

Offline sound recording in iphone

Hi, I am developing a music mixing app in iphone. It'll mix the music and user can compose a new music from it. I need to record this final music. I had used AVAudiorecorder to record this one. But no change. It can record sound from microphone but I need to record app sound. I had used audio queue call back function to record the aud...

Save ByteArray generated by Pixel Bender

I am building a Flash Application which will allow a user to mix two mp3 files and send the mixed result to our server. Using Pixel Bender I am already able to create a mix: public class Mixer { [Embed(source="mix.pbj", mimeType="application/octet-stream")] protected var NewFilter:Class; private var shader:Shader; private v...

How can I shuffle a list without randomness, and guarantee that a portion of elements will eventually appear on one side?

Given a list of elements, does a shuffling algorithm exist that will guarantee that eventually a selected half portion will be on one side, and the remainder on the other? Example: { 4, 3, 10, 7, 2, 9, 6, 8, 1, 5 } Given the set above, I'd like to have a mixing algorithm that eventually moves the marked ones to the left, even though...

Cannot get ducking to work with kAudioSessionProperty_OtherMixableAudioShouldDuck

This is driving me insane, I have an iPhone app with background music playing from the iPod app, when I play a sound I want to duck the background music until the sound finishes playing. So I leave my audio session inactive until I need to play the sound, and when I play the sound I set the kAudioSessionProperty_OtherMixableAudioShouldDu...