Skip to main content

key

Macro key 

Source
macro_rules! key {
    ($value:expr $(,)?) => { ... };
}
Expand description

定数からKeyをコンストラクトする。

use voicevox_core::{key, Key};

const C4: Key = key!(60);
const D4: Key = key!(60 + 2);
const _: Key = key!(-1);
const _: Key = key!(128);