synthesizer

How to get a current state of a midi device?

醉酒当歌 提交于 2021-01-27 19:26:59
问题 How can I query a midi device for a current state of program, volume etc? I tried to find it in Midi specs, yet without any luck. I basically need to get the current instrument (piano etc.) from a digital piano connected by USB midi. Java seems to be able to do it: http://docs.oracle.com/javame/config/cldc/opt-pkgs/api/mm/jsr135/index.html?javax/microedition/media/control/MIDIControl.html How do they do it? 回答1: You can't. There are no such standard messages for dumping the current patch, CC

How to get a current state of a midi device?

故事扮演 提交于 2021-01-27 18:55:57
问题 How can I query a midi device for a current state of program, volume etc? I tried to find it in Midi specs, yet without any luck. I basically need to get the current instrument (piano etc.) from a digital piano connected by USB midi. Java seems to be able to do it: http://docs.oracle.com/javame/config/cldc/opt-pkgs/api/mm/jsr135/index.html?javax/microedition/media/control/MIDIControl.html How do they do it? 回答1: You can't. There are no such standard messages for dumping the current patch, CC

Android - Play SoundFont with MIDI file

南楼画角 提交于 2020-01-22 14:43:12
问题 I have one midi file and I have played that midi file using MediaPlayer in android using the following code: val mMediaPlayer = MediaPlayer.create(context, R.raw.test_ring_1) mMediaPlayer?.start() It default play with one instrument like piano, now I want to add soundfont (sf2/sf3) file to play the midi notes with different instrument and with reverberation effects. Please guide a way to achieve expected result. 回答1: There are two libraries that will be used to play a midi file using

Android - Play SoundFont with MIDI file

冷暖自知 提交于 2020-01-22 14:37:25
问题 I have one midi file and I have played that midi file using MediaPlayer in android using the following code: val mMediaPlayer = MediaPlayer.create(context, R.raw.test_ring_1) mMediaPlayer?.start() It default play with one instrument like piano, now I want to add soundfont (sf2/sf3) file to play the midi notes with different instrument and with reverberation effects. Please guide a way to achieve expected result. 回答1: There are two libraries that will be used to play a midi file using

Web Audio synthesis: how to handle changing the filter cutoff during the attack or release phase?

南楼画角 提交于 2020-01-12 14:15:50
问题 I'm building an emulation of the Roland Juno-106 synthesizer using WebAudio. The live WIP version is here. I'm hung up on how to deal with updating the filter if the cutoff frequency or envelope modulation amount are changed during the attack or release while the filter is simultaneously being modulated by the envelope. That code is located around here. The current implementation doesn't respond the way an analog synth would, but I can't quite figure out how to calculate it. On a real synth

How would I go about programmatically interacting with VST(i) Plugins to synthesize audio?

老子叫甜甜 提交于 2019-12-30 02:13:05
问题 Take, for example, the VSTi Triforce, by Tweakbench. When loaded up in any VST host on the market, it allows the host to send a (presumably MIDI) signal to the VSTi. The VSTi will then process that signal and output synthesized audio as created by a software instrument within the VSTi. For example, sending an A4 (MIDI note, I believe) to the VSTi will cause it to synthesize the A above Middle C. It sends the audio data back to the VST Host, which then could either play it on my speakers or

Simple embeddable MidiSynth for iOS?

岁酱吖の 提交于 2019-12-29 03:49:25
问题 I have a guitar diagram app for Android that I am porting to iOS. Android has a embedded midi synthesizer (sonivox), so I can generate midi files and let Android handle the playback. Is there a way to do this on iOS? Or are there very lightweight embeddable synths for iOS? 回答1: Update: My answer is out-of-dated. @lukebuehler's answer is much appropriate. If you don't mind non-opensource solution, try FMOD. Being a commercial audio engine for games, fmod equips a simple MIDI synth. I've tried

How to make PHP output a sound (beep)?

烂漫一生 提交于 2019-12-24 00:53:14
问题 What's the PHP verson of this python code? import winsound winsound.Beep(537, 2000) 回答1: php is mostly used on webservers, so what the use beeping there, and you can't beep on user computer through php, as php is translated into HTML, which has no such method. If you want to have Win32 calls have a look at: How do I make Win32 API calls from PHP? also the Win32 Beep Function But if you want to have beep sound on user browser better embed audio into the HTML itself. Edit: Another method for

@property/@synthesize question

吃可爱长大的小学妹 提交于 2019-12-20 08:56:07
问题 I'm going through all of my documentation regarding memory management and I'm a bit confused about something. When you use @property, it creates getters/setters for the object: .h: @property (retain, nonatomic) NSString *myString .m: @synthesize myString I understand that, but where I get confused is the use of self. I see different syntax in different blogs and books. I've seen: myString = [NSString alloc] initWithString:@"Hi there"]; or self.myString = [NSString alloc] initWithString:@"Hi

MIDI player/synthesizer library for the iPhone

久未见 提交于 2019-12-18 01:31:12
问题 Does anyone know if there is a free/cheap MIDI player/synthesizer library that I can incorporate into my iPhone application? As I understand it the iPhone doesn't have native support for MIDI playback. To work around this limitation I've created a bank of .caf sound samples that I playback myself but I'd really like to improve the implementation and use MIDI if possible. Any advice would be greatly appreciated. 回答1: Since 10 october of 2011, that is since iOS5, Apple has started delivering