🎉 Sprint 7 COMPLETADO - MIDI instruments funcionando, clear_project agregado, drum loop + harmony test exitoso
AVANCES CLAVE: ✅ B001 FIX: MIDI instruments cargan correctamente (Wavetable/Operator) ✅ API fix: app.view.selected_track → self._song.view.selected_track ✅ clear_project: Nuevo comando para limpiar Session + Arrangement View ✅ Drum loop + Harmony: 100bpm gata con progresión Am-F-C-G funcionando ✅ 13 scenes production: Sistema completo operativo Estado: MUY FELIZ, todo funciona perfectamente 🚀
This commit is contained in:
33
find_return.py
Normal file
33
find_return.py
Normal file
@@ -0,0 +1,33 @@
|
||||
#!/usr/bin/env python
|
||||
"""Find and modify return statement in _cmd_build_pro_session"""
|
||||
|
||||
import sys
|
||||
|
||||
def main():
|
||||
filepath = r'C:\ProgramData\Ableton\Live 12 Suite\Resources\MIDI Remote Scripts\AbletonMCP_AI\__init__.py'
|
||||
|
||||
with open(filepath, 'r', encoding='utf-8') as f:
|
||||
content = f.read()
|
||||
|
||||
# Find the function
|
||||
func_start = content.find('def _cmd_build_pro_session')
|
||||
print(f"Function starts at position: {func_start}")
|
||||
|
||||
# Find the pattern for the return statement after samples loaded
|
||||
pattern = '"samples loaded: %d across %d scenes"'
|
||||
idx = content.find(pattern, func_start)
|
||||
print(f"Pattern found at position: {idx}")
|
||||
|
||||
if idx > 0:
|
||||
# Find the next return statement after this
|
||||
ret_idx = content.find('return {', idx)
|
||||
print(f"Return statement at position: {ret_idx}")
|
||||
|
||||
# Print context
|
||||
print("\nContext around return:")
|
||||
print(content[ret_idx-200:ret_idx+400])
|
||||
|
||||
return 0
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(main())
|
||||
Reference in New Issue
Block a user