Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6064843
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:19:28+00:00 2026-05-23T09:19:28+00:00

I am trying to create a theremin -like program, that plays continuous notes based

  • 0

I am trying to create a theremin-like program, that plays continuous notes based on mouse cursor position. I am using Carl Franklin’s MIDI Tools library to do this.

This is the code snippet I am using to play the notes.

byte pitch = 0;
while (exit == false)
{
    byte newpitch = (byte)(32 + ((float)Cursor.Position.X / (float)SystemParameters.PrimaryScreenWidth) * 64);

    if (newpitch != pitch)
    {
        instrument.StopNote(pitch,0);
        instrument.PlayNote(newpitch, 53);
        pitch = newpitch;
    }
};

The problem is that the notes that are played out this way sound distinct; there is a clear transition from one note to another.

How do I play a continuous theremin like sound that shifts the pitch continuously?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T09:19:28+00:00Added an answer on May 23, 2026 at 9:19 am

    This problem has little to do with MIDI, and more to do with the synthesizer generating the sound.

    If you want to go from one note to the next smoothly with your current implementation, you need a synth patch that has lots of portamento. You may be able to get this to work on many patches by setting CC37 to 127 when you initialize.

    Ideally, for complete smoothness, you need a synth patch that interprets the pitch bend for more than just up and down one step. Again, this has nothing to do with the values you send. Those will be 14-bit, no matter what. It is up to the synth to decide how far up/down those values go.

    Depending on the synth, you can adjust its pitch bend range using the RPN for pitch bend sensitivity. You can read about it here: http://www.hoofjaw.com/forums/Topic946-32-1.aspx#bm1254

    Or here: http://www.philrees.co.uk/nrpnq.htm

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying create a layout. There are several inner layouts that should like
I am trying create a WCF service that leverages the WPF MediaPlayer on the
Trying to create my first iPhone app that would play back audio. When I
Trying to create several layers of folders at once C:\pie\applepie\recipies\ without using several different
Trying to create a small monitor application that displays current internet usage as percentage
I'm trying to create a sitemap using Linq to Xml, but am getting an
I am trying create a new frame in wxPython that is a child of
I'm trying create an executable for Windows for a GUI application in tkinter using
I'm trying create a bot which automatically likes Facebook posts. Using Mechanize I can
Ok so I am trying create a login script, here I am using PHP5

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.