Hi
Is anyone able to point me to a quick explanation on parsing data from a CSV file?
I've seen a few bit's and bobs on the forum but struggling to understand it properly.
Cheers
parsing large CSV files
Hi
Is anyone able to point me to a quick explanation on parsing data from a CSV file?
I've seen a few bit's and bobs on the forum but struggling to understand it properly.
Cheers
Illegitimi non carborundum
@polyphuckin [text] might do it, but I don't know.....
Is your csv file actually using commas as delimiters?
[iem_pbank_csv] will do it (from the iemlib library)...... if the file is using <space> or <tab> as delimiters.
David.
question: why do you need to do it in pd?
if you really need to do it in pd, you could convert your csv in json and then use https://github.com/residuum/PuRestJson
if not, you can use node, python, php etc to query your csv and send the values with pdsend.
I've done this before. What difficulties are you facing? The trick is to identify the number of columns and then process it accordingly. Say that the number of columns is 4; you could use the following construction to give you each cell in a certain row.
@whale-av Thanks for that. It seems to work. Especially after i removed the comma, and used space as a delimiter.
@EEight Yes and no. It's a data dump that will be graphed and then FFT to find it's components, but i'm terrible in all other programming languages and only mildly faster in Pd.
@liamG The problem was that my brain wasn't working. Now i've been pointed in the right direction and had a proper play i think i can move forward.
I'll post up my patch when i finish it, it's performing FFT on a stochastic oscillator.
Illegitimi non carborundum
hey there @polyphuckin
I realize this thread is three years old but it seems like I am working along similar lines although in the other direction. Did you complete this project and is there a way to see it or listen to it? What solution did you find for parsing the csv data?
I am working the other direction from csv data to FFT to audio...
Currently the IEMlib CSV object isn't working on my machine but I wondered what you came up with in the end, perhaps a solution like @LiamG suggested above is a good one, but I am sort of trying many options (haha, every option I can fine in other words).
best,
Jorge
@Coalman This might be useful...... https://github.com/danomatika/rc-patches/tree/master/extra but needs other libraries.
David.
Oops! Looks like something went wrong!