[SOLVED] Midi Script: Delay2048 with unkown tag AUDIOFRAME

MusE is a DAW for Linux with both MIDI and Audio editing. https://muse-sequencer.github.io

Moderators: MattKingUSA, khz, spamatica

Post Reply
User avatar
oscillator
Established Member
Posts: 1127
Joined: Sat Jan 17, 2015 6:07 pm
Location: SWEDEN
Has thanked: 725 times
Been thanked: 296 times
Contact:

[SOLVED] Midi Script: Delay2048 with unkown tag AUDIOFRAME

Post by oscillator »

I am in the process of writing some Python Midi scripts.

There is a strange one already there: Delay2048

Code: Select all

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# MusE external midi processing script
# By: Robert Jonsson (c) 2013
# RemoveDoubles
(...)
import sys,time
testFile = open(sys.argv[1],"r")
inputEvents = testFile.readlines()
testFile.close()

outputEvents=[]

for line in inputEvents:
      if line.startswith('AUDIOFRAME'):
        tag, frame, newFrame = line.split(' ')
        newline = tag + " " + frame + " " + str(int(frame) + 2048)
        outputEvents.append(newline)
      else:
        outputEvents.append(line)

testFile = open(sys.argv[1],"w")
testFile.writelines(outputEvents)
testFile.close()
It looks for a tag named AUDIOFRAME. This is not documented (https://github.com/muse-sequencer/muse/ ... ile-format), and it seems strange for it to exist in MIDI data.

@spamatica, is this your code?
Last edited by oscillator on Mon Nov 09, 2020 10:34 pm, edited 1 time in total.

MusE DAW running on Debian 11 Testing/XFCE4.
https://oscillator.se/musik

spamatica
Established Member
Posts: 573
Joined: Mon Feb 08, 2010 10:38 am
Has thanked: 80 times
Been thanked: 97 times

Re: Midi Script: Delay2048 with unkown tag AUDIOFRAME

Post by spamatica »

Woops, yes.

This should be removed from the repo, it was a test implementation for manual latency correction. The needed AUDIOFRAME is probably never handled as it was not completed.
MusE DAW
User avatar
oscillator
Established Member
Posts: 1127
Joined: Sat Jan 17, 2015 6:07 pm
Location: SWEDEN
Has thanked: 725 times
Been thanked: 296 times
Contact:

Re: Midi Script: Delay2048 with unkown tag AUDIOFRAME

Post by oscillator »

Thanks @spamatica, I have deleted it now/pull request.

MusE DAW running on Debian 11 Testing/XFCE4.
https://oscillator.se/musik

Post Reply