# Programming midi notes into a plugin

**URL:** <https://forum.juce.com/t/programming-midi-notes-into-a-plugin/50709>\
**Category:** Audio Plugins\
**Created:** [March 23, 2022, 4:11pm UTC](https://forum.juce.com/t/programming-midi-notes-into-a-plugin/50709 "2022-03-23T16:11:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrshinyy](https://avatars.discourse-cdn.com/v4/letter/m/54ee81/32.png) [@mrshinyy](https://forum.juce.com/u/mrshinyy)\
**Post date:** [March 23, 2022, 4:11pm UTC](https://forum.juce.com/t/programming-midi-notes-into-a-plugin/50709/1 "2022-03-23T16:11:36Z")

</div>

Hello! I have a synthesizer plugin that currently takes midi input from another channel inside of a DAW. I would like to program midi notes into the plugin so that when it is opened it is already playing a specific note or notes without the user having to play it themselves. Is there a way to do this? I’m trying to use the midi messages class but am having trouble implementing it. Any help would be appreciated thank you.

---

<div class="post-metadata">

**Author:** ![drajmi](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/drajmi/32/9463_2.png) [@drajmi](https://forum.juce.com/u/drajmi)\
**Post date:** [March 23, 2022, 10:07pm UTC](https://forum.juce.com/t/programming-midi-notes-into-a-plugin/50709/2 "2022-03-23T22:07:30Z")

</div>

Hello! Have a look at the Arpeggiator Plugin JUCE demo project. You can generate a midi event with the MidiBuffer::addEvent method.
