Midi Keyboard Plugin

1 view
Skip to first unread message

Destiny Olatunji

unread,
Jul 26, 2024, 12:41:58 AM7/26/24
to Aleph

Trying to create a midi keyboard component when I create an instance of one in my editor.h I attempt to use this instance and get a message no default constructor where in my editor.cpp am I to put the constructor for my midi keyboard component

The problem is not where to put it, but the MidiKeyboardComponent needs a MidiKeyboardState and the orientation as arguments.
The MidiKeyboardState is separate from the MidiKeyboardComponent, because you want to have the state in the processor so it can process the midi events regardless if the editor is shown or not.

I think this is also a bit of a c++ question
do i need to declare the constructor for the MidiKeyboardComponent in the AudioProcessor class or outside of it .
when it is declared can i use it as an instance like a slider I thought i could use it like adding a slider but that did not work

What I usually do, since the keyboardState needs to be in the processor in order to process the midi messages independently from the presence of an editor, I expose the keyboardState either as a public variable in the processor or as reference (preferred):

A note about your code: be pedantic about the order when you declare your members and the order of the initialisation!
First call the base classes constructor, then all the members in order of appearance in the class declaration.
If you access them in the wrong order you might call uninitialised memory and crash.

Same thing was happening to me. Turns out it was my Presonus Audiobox that my keyboard was plugged into. It was brand new but needed to download the updates from the company. Once the update was downloaded, it worked great.

Thanks for the post, you saved my sanity. I have spent 6-8 hours trying to figure out why my MIDI piano was suddenly not triggering my Ivory Pianos (VST plugin). It was working fine all last year. I went through the control panel, everything I could think of. I was about to give up on Cubase when I saw your post.

I found numerous discussions online about getting it to communicate properly.
One of the issues were that I could put in midi signals manually and it would play back correctly out of the assigned output. I could also play notes on my keyboard and it would record the notes but not send the notes onward to the assigned synth.

Like there was some sort of blokade.
I opened the midi filter and nothing was set to be filtered apart from sysEx. I assigned it to filter everything and tried that. nothing worked.
Then unfiltering everything again did the trick.

I can only assume you carefully followed the instructions in the tutorials. If you did then it should be working.
The steps to select your keyboard controller as input are clearly explained in both videos

Right. That would seem to indicate that there is no specific driver for the keyboard or MIDI-to-USB cable.
Sheeeawn, what is the make and model of the keyboard? Does it have a USB port or are you using a MIDI-to-USB adapter cable?

Does this keyboard work in any other DAW? Does the little icon in the system tray flash on and off.
If not then your midi to USB cable is garbage.
Midi OX is a good free app that will diagnose midi routing issues.

I am assuming the "MIDI to USB adapter" is a 5-pin DIN MIDI to USB MIDI interface, possibly a cable. Since the quality and capabilities of those interface cable vary greatly (some 1 in, 1 out no-name interface cables are notoriously problematic), perhaps it might be helpful to specify what you have (not just "MIDI to USB adapter").

I once tested an iConnect mio, 1 in, 1 out interface cable for suitability doing sysex data exchanges with Casio CZ synths and a computer. DIN connectors on one end connected to the synth and a usb connector on the other end connected to a modern PC. It passed with flying colors. However, I have heard horror stories about other 1 in, 1 out cable interfaces.

Downloaded the KORG M1 plugin today and can't figure out why my midi keyboard (M-AUDIO Key Station mk3) isn't working with it. Every other plugin or preset instrument works fine with my keyboard but the M1 plugin is silent. I can open a midi region in the M1 channel and manually write in notes and that works fine. I have changed the MIDI In Channel and MIDI Out Channel to 1 like other posts have suggested and even that doesn't do anything. The MIDI In Port is set to my Key Station midi keyboard. I really don't know what to do.

This article is the first in a series where we guide you through the basics of music making with computers. This guide is aimed at pianists (and keyboardists) of all skill levels and aims to show you the proper method of working with software instruments (VSTi plugins).

Sequencing: This term describes the process of drawing out notes in the software by hand. This is great for creating synth part loops, but nothing beats the natural playing dynamics of a skilled piano player.

An option you might need to toy around with is the Audio Buffer Size. If you find yourself noticing some delay between your keypresses and the sounds, try lowering the audio buffer size.

For live performers, try exploring the FX tab. Using the onboard controls, you can use an impressive hybrid reverb/delay unit with multiple algorithms to add a sense of ambience to your sound, and tame some unwanted frequencies using the parametric EQ.

The installer will prompt you to select what formats you want to install. This seems complicated, but uncheck everything apart from the standalone and VST2 versions for now.

AAX format: This is a plugin format that only works on MacOS. Generally, most DAWs on Mac support both VSTs and AAX plugins, but Logic Pro is the exception that only supports AAX plugins, do bear that in mind if you intend on using Logic Pro for the latter half of the tutorial.

The main strength of this library is the massive sample count. The download is massive, clocking in at a humungous 4.6 GB. Each key on the piano is sampled at 5 different playing intensities, twice.

Once you have the files downloaded and extracted, fire up sforzando, and set up your keyboard as the selected MIDI input device. You can access this menu via the Tool dropdown on the upper left corner, followed by the Preferences option.

If you want an upright piano sound, Rudi Fiasco has a beautifully sampled SFZ library that sounds awesome. Want strings? Christian Collins has you covered with his expression-focused implementation.

Digital Audio Workstations (DAWs): These are programs designed to include the full suite of music making tools under a single application. A more detailed explanation is available here, but just know that it includes all you need to make music from start to finish.

To enable monitoring, click on the mic symbol to the left of the first audio meter, and select the Start Monitoring option. Now, every note you play should cause the meters to move upwards.

Ableton, and most DAWs, will also arm the track for recording, as indicated by the bottom-most button on the track turning red. You should be able to hear sounds as you play the keys now.

In Ableton Live, presets are loaded in as squares on the bottom section of the screen. As you can see, a few options are available if you want to modify the sound slightly, but it pales in comparison to Addictive Keys.

MIDI: MIDI is a protocol designed to let digital musical instruments communicate between each other, and it has been used in computer-based instruments as well. Whenever you play a note on your keyboard, it sends a MIDI signal containing data about the note, the dynamics (value between 0-127). This triggers the corresponding sample or sound from your software instrument.

Double click the recorded MIDI track to enter MIDI editing mode. From this menu, you can move notes around, change lengths of notes, and even change how hard the notes were pressed (with the bottom part of the screen, indicated by the red lines of differing heights).

Im trying to plugin a keyboard to use as midi its an old yamaha psr E323, has 2 midi outputs, plugged them to the QC.
How can i use this or any keyboard to use a sound library on a DAW?
Can this be done through the QC or is the midi in the QC just for extra pedal controls?

So forgive me if this sounds like a dumb question. I am trying to get the 'Prosoniq Orange Vocoder AU Effect Plug-in' to work in Studio One- but I cannot work out how to control the midi notes. I can't seem the route the midi to the plugin? Any help would be greatly appreciated.

I also had problems with the dynamics. I am using Novation Lunchkey 49. When I was playing on a midi keyboard, it sounded very quiet. The solution was to add Midi effect Velocity. I increased the value of Velocity. After that, the piano sounded more correctly. Maybe you have the same problem.

Not sure if this is a lack of software or music knowledge (probably both). I started using a DAW (Cakewalk) and bought a very basic midi keyboard (Akai mini) to start making some very simple music. I am trying to copy bass guitar tabs or to "play" them with the bass plugin in the DAW. I can play any note with the mouse, and as the keyboard is small I understand not all keys can be mapped to the strings as on my keyboard there are not enough keys. But how to chose which notes are played when a given key is pressed? Pictures to illustrate this:

In the first picture, you have clicked the 1st fret of the 1st string, and in the second picture you've clicked the 11th fret of the 3rd string. On a real bass guitar, these produce the same fundamental pitch, but a slightly different tone. You could also have played, for example, the 6th fret of the 2nd string. Thinner strings usually produce a slightly brighter sound than the thicker ones.

Reply all
Reply to author
Forward
0 new messages