Comments (8)
ok thanks alot
will definetely try this
from matchering.
lols, i did a little hack
just added the file path to my context
context = { 'mastered1':f'/media/mastered/{track.user.id}/{track.name_of_track}/my_song_master_16bit.wav', 'mastered2':f'/media/mastered/{track.user.id}/{track.name_of_track}/my_song_master_24bit.wav' }
in my html file
<p > <a href="{{mastered1}}" class="btn btn-primary">Download Mastered Track 1</a> </p> <p > <a href="{{mastered2}}" class="btn btn-primary">Download Mastered Track 2</a> </p>
from matchering.
def master(request,pk):
track = get_object_or_404(Mastering, pk=pk)
print("TARGET TRACK PATH:",track.target_track.path)
print("TARGET REFERENCE PATH:",track.reference_track.path)
mastered = mg.process(
target=track.target_track.path,
reference=track.reference_track.path,
results=[
# mg.pcm16('my_song_master_16bit.wav'),
# mg.pcm24('my_song_master_24bit.wav')
mg.pcm16(f'{settings.MEDIA_URL}{track.user.username}/mastered/my_song_master_16bit.wav'),
mg.pcm24(f'{settings.MEDIA_URL}{track.user.username}/mastered/my_song_master_24bit.wav'),
],
)
return HttpResponse("MASTER")
from matchering.
It seems PySoundFile can't write to this directory.
from matchering.
Sory Doesn't the result argument creates and writes to the directory????
from matchering.
Here's how PySoundFile library works.
https://pysoundfile.readthedocs.io/en/latest/#soundfile.write
It doesn't create a directory if it doesn't exist and have no args to change this behaviour. Your app need to prepare these dirs on its own.
from matchering.
@sergree any script on how to download the mastered tracks in django ?????
from matchering.
Soon, this month
from matchering.
Related Issues (20)
- Invalid input. HOT 2
- Max file size limit? HOT 3
- track length is exceeded in the target file? HOT 2
- Generate Presets for future uses HOT 1
- Need Surround (vs. Stereo) configs HOT 2
- How to work with mp3s? HOT 3
- Tonal Balance, Dynamic EQ, Intensity Analysis, Wetness % HOT 2
- Will we see a new update on matchering? HOT 1
- mono vs stereo output HOT 3
- Any way to see exactly what matchering did to a song HOT 3
- matchering.com redirects to eMastered HOT 1
- Music Production HOT 1
- Apple M1 - Getting an "Unknown Error" HOT 4
- Matchering google colab? HOT 3
- Song length restriction? HOT 3
- Get the time where the reference must be HOT 2
- upload-zone is hidden HOT 2
- Change several lines "debug()" to "info()"
- It not work with aws s3 HOT 3
- Error 4002 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from matchering.