mirror of
				https://github.com/AquaMorph/Droplets.git
				synced 2025-10-31 16:23:19 +00:00 
			
		
		
		
	Fixed knobs not working on AD
This commit is contained in:
		| @@ -18,7 +18,9 @@ void AD::Process(DacHandle::Channel chn, | ||||
|   if(patch->gate_input[gate].Trig()) { | ||||
|     env.Trigger(); | ||||
|   } | ||||
|    | ||||
|   if (*state == DropletState::kFull) { | ||||
|     //DrawSolidRect(patch, 30,30,40,40, true); | ||||
|     attack = attack_param.Process(); | ||||
|     decay = decay_param.Process(); | ||||
|     curve = curve_param.Process(); | ||||
| @@ -108,11 +110,11 @@ ADDroplet::ADDroplet(DaisyPatch* m_patch, | ||||
|   SetAnimationRate(10); | ||||
|   ad[0].Init(Patch(), | ||||
| 	     sample_rate, | ||||
| 	     &m_state); | ||||
| 	     State()); | ||||
|   if (m_state == DropletState::kFull) { | ||||
|     ad[1].Init(Patch(), | ||||
| 	       sample_rate, | ||||
| 	       &m_state); | ||||
| 	       State()); | ||||
|   } | ||||
|   CreateTitleGraph(); | ||||
| } | ||||
| @@ -200,6 +202,7 @@ void ADDroplet::Draw() { | ||||
|   } | ||||
|   title_graph->SetPixelPercentage(ad[0].GetSignal()); | ||||
|   title_graph->Draw(Patch(), GetScreenMin(), 0); | ||||
|  | ||||
|    | ||||
|   DrawName("AD"); | ||||
|   AnimationInc(); | ||||
|   | ||||
| @@ -114,11 +114,11 @@ static void AudioThrough(AudioHandle::InputBuffer in, | ||||
|  | ||||
| Droplet* GetDroplet(DropletState state) { | ||||
|   switch(selected_menu->GetState()) { | ||||
|   default: | ||||
|   case MenuState::kAD: | ||||
|     return new ADDroplet(&patch, | ||||
| 			 state, | ||||
| 			 sample_rate); | ||||
|   default: | ||||
|   case MenuState::kLFO: | ||||
|     return new LFODroplet(&patch, | ||||
| 			  state, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user