COCKOS
CONFEDERATED FORUMS
Cockos : REAPER : NINJAM : Forums
Forum Home : Register : FAQ : Members List : Search :

Go Back   Cockos Incorporated Forums > Other Software Discussion > WDL users forum

Reply
 
Thread Tools Display Modes
Old 04-19-2020, 06:39 PM   #1
Opcode 7
Human being with feelings
 
Join Date: Mar 2017
Posts: 79
Default Ableton -- Why wont SendMidiMsg work from a Thread?

I start my thread like so

Code:
Plugin::Plugin(IPlugInstanceInfo instanceInfo)
  :	IPLUG_CTOR(NUM_PARAMS, kNumPrivateParams, kNumPrograms, instanceInfo)
{
  TRACE;

  g_plugin = this;

  sysexThread = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)ThreadTrampoline, (LPVOID)this, 0, &threadId);
Code:
DWORD ThreadTrampoline(LPVOID lpParam)
{
	Plugin* me = (Plugin*)lpParam;

	if (!me)
		return 0;

	Sleep(500);

	while (me->Running()) {

/// me->SendMidiMsgThings In here

It works with REAPER, SaviHost, in App Form, etc ---- just not ableton live?! Any ideas what the heck is going on here or how I can send MidiCC from a thread in ableton!?

Last edited by Opcode 7; 04-19-2020 at 08:17 PM.
Opcode 7 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 01:06 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.