|
@@ -297,7 +297,7 @@ export const moveNoteKey = (note: string, moveData: { step: number; move: number
|
|
|
const formateGetData = {
|
|
|
getNoteType: (duration: number) => {
|
|
|
const type = 0.25 / duration;
|
|
|
- console.log(type, duration);
|
|
|
+ // console.log(type, duration);
|
|
|
const noteType = [
|
|
|
{ name: 0.25, value: "4" },
|
|
|
{ name: 0.5, value: "2" },
|
|
@@ -319,14 +319,16 @@ const formateGetData = {
|
|
|
};
|
|
|
|
|
|
export const formateAbc = (visualObj: TuneObject, option: any) => {
|
|
|
+ let speed = visualObj?.metaText?.tempo?.bpm ? visualObj.metaText.tempo.bpm : visualObj.getBpm();
|
|
|
const abc = {
|
|
|
celf: "K:treble",
|
|
|
minUnit: "L:1/4",
|
|
|
meter: "M:4/4",
|
|
|
- speed: `Q:1/4=${visualObj.getBpm()}`,
|
|
|
+ speed: `Q:1/4=${speed}`,
|
|
|
key: "K:C",
|
|
|
visualTranspose: 0,
|
|
|
subjectCode: option.subjectCode ?? "acoustic_grand_piano",
|
|
|
+ title: visualObj?.metaText?.title ?? "",
|
|
|
};
|
|
|
const list = [];
|
|
|
let notes = [];
|