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

  • SEARCH
  • Home
  • 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 6799185
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:49:06+00:00 2026-05-26T18:49:06+00:00

Has anybody successfully implemented an Instrument using MoMu STK on iOS? I am bit

  • 0

Has anybody successfully implemented an Instrument using MoMu STK on iOS? I am bit stacked with initialization of a stream for Instrument.
I am using tutorial code and looks like something missing

RtAudio dac;

        // Figure out how many bytes in an StkFloat and setup the RtAudio stream.
        RtAudio::StreamParameters parameters;
        parameters.deviceId = dac.getDefaultOutputDevice();
        parameters.nChannels = 1;
        RtAudioFormat format = ( sizeof(StkFloat) == 8 ) ? RTAUDIO_FLOAT64 : RTAUDIO_FLOAT32;
        unsigned int bufferFrames = RT_BUFFER_SIZE;

        dac.openStream( & parameters, NULL, format, (unsigned int)Stk::sampleRate(), &bufferFrames, &tick, (void *)&data );

Error description says that output parameters for output device are invalid, but when I skip to assign device id then it’s not working as well.
Any idea would be great.

  • 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-26T18:49:07+00:00Added an answer on May 26, 2026 at 6:49 pm

    RtAudio is only for desktop apps and there is no need to open stream when implementing on iOS.

    example:

    Header file:

    #import "Simple.h"
    
    // make struct to hold 
    
    struct TickData {
    
        Simple *synth;    
    
    };
    
    // Make instance of the struct in @interface= 
    TickData data;
    

    Implementation file:

    // init the synth:
    data.synth = new Simple();
    data.synth->keyOff();
    
    // to trigger note on/off:
    data.synth->noteOn(frequency, velocity);
    data.synth->noteOff(velocity);
    
    // audio callback method:
    for (int i=0; i < FRAMESIZE; i++) {
        buffer[i] = data.synth -> tick();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Has anybody ever successfully written code to extract data from a SharePoint 2007 list
Has anybody successfully build Mesa 7.10 with llvmpipe driver using LLVM 2.8 on Windows
Has anybody successfully imported the eigen library using the ndk? I was thinking about
Has anybody successfully configured Teamcity to monitor, extract, and build from GitHub? I can't
Has anybody successfully integrated Clearcase with Teamcity (which advertises Clearcase support) to realize a
Is there anybody who has successfully accessed a Web service from an Oracle stored
Has anybody got any kind of experience with dynamic programming using WCF. By dynamic
I wanted to know if anybody has successfully compiled a data structure containing EXTERNAL
Has anybody been successful or can find an example of using nested grids in
Has anybody successfully used Report Builder 3.0 on a company network (that uses a

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.