You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
678 B
22 lines
678 B
// Author: Gockner, Simon
|
|
// Created: 2021-04-26
|
|
// Copyright(c) 2021 SimonG. All Rights Reserved.
|
|
|
|
using Lib.Audio.Controls.Buttons.Interfaces;
|
|
using Lib.Audio.Interfaces;
|
|
using Lib.Midi.Messages.Interfaces;
|
|
|
|
namespace Lib.Audio.Controls.Buttons
|
|
{
|
|
public class RecordButton : Button, IRecordButton
|
|
{
|
|
public RecordButton(int noteNumber, int channelNumber)
|
|
: base(noteNumber, channelNumber)
|
|
{
|
|
|
|
}
|
|
|
|
public override IMidiMessage? Handle(IControllable? controllable, Velocity velocity) => null; //for now don't do anything when pressed
|
|
public IMidiMessage? Record() => base.Handle(null, Velocity.On);
|
|
}
|
|
} |