R
R
RionRedhand2020-03-11 20:54:44
Python
RionRedhand, 2020-03-11 20:54:44

Which microSD is suitable for storing samples?

I use a 256 GB MacBook for composing music. With all my samples and synths, there is quite a bit of space left, and I'm looking at how I can expand the space.
Buying an original (or non-original) SSD is quite expensive, so I look towards microSD cards, there is a connector on the beech that I don’t use.
Actually, there are two questions:
1) How durable are such cards, if you plan to record a bunch of files on them, which will then be played from the same cards?
2) What can you advise all the same in terms of reliability from 250GB?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
K
Kapustlo, 2019-08-03
@antosha_html

Hi, here's my suggestion for solving the problem:

import datetime
import sys

from colorama import Fore, Back, Style, init

init()

def main():
  try:
    _, login, password = sys.argv
  except ValueError:
    login = password = ""

  if password != "abrakadabra" or login != "root":
    print(Fore.RED)
    print("Неверный логин или пароль!")
    exit()

  print(Fore.GREEN)
  print("Добро пожаловать!")
  print(Fore.WHITE)

  try:
    name = input("Как тебя зовут?: ")
    print("Приятно познакомиться, {}! Я - Джессика! Твой ассистент.".format(name))

    while True:
      question = input("Введите запрос: ")

      if question == "Сколько сейчас времени?":
        cur_time = datetime.datetime.today().strftime("%H.%M")
        print("Сейчас: " + str(cur_time))
      elif question == "Какая сегодня дата?":
        date = datetime.datetime.today().strftime("%d.%m.%Y")
        print("Сегодня у нас: " + str(date))
      else:
        print("Извините, я не могу понять ваш вопрос...")

  except KeyboardInterrupt:
    exit()

if __name__ == "__main__":
  main()

A little about what I changed: I removed the part with the declaration of the encoding, since utf-8 is set by default in new versions of Python, I removed the time module from the import, since it is not used. In order to import functions from a module, it is not necessary to first import the "colorama" module itself, you can immediately, as I did. I renamed the "time" variable to "cur_time", as it could conflict with the "time" module in the future, and added "date" and "cur_date" to the loop, because in theory, if left for a certain time, the information will become irrelevant . I removed the "qstn" function, since we will not need it further, we will have a cycle. There will be my "gag", which, in my opinion, is more fun and will improve interaction with the program. There is a line sys.argv. You probably, I came across that in some console utilities you can pass various parameters, and so, they will be stored in this list in python, and we take them in the code. There you can immediately remove many lines of code and make the login more convenient and faster for the user. Further it is easier, we will run questions in a loop as they come in, catch the "ctr + c" combination, which will throw out the "KeyboardInterrupt" error and simply exit the program when it comes across. And I also wanted to make one remark, you had "SystemExit" thrown out in the error code, and so, as far as I know, it's better not to throw out system errors like this or "KeyboardInterrupt" yourself. in the code we take them. There you can immediately remove many lines of code and make the login more convenient and faster for the user. Further, it is easier, we will run questions in a loop as they come in, catch the "ctr + c" combination, which will throw out the error "KeyboardInterrupt" and simply exit the program when it comes across. And I also wanted to make one remark, you had "SystemExit" thrown out in the error code, and so, as far as I know, it's better not to throw out system errors like this or "KeyboardInterrupt" yourself. in the code we take them. There you can immediately remove many lines of code and make the login more convenient and faster for the user. Further it is easier, we will run questions in a loop as they come in, catch the "ctr + c" combination, which will throw out the "KeyboardInterrupt" error and simply exit the program when it comes across. And I also wanted to make one remark, you had "SystemExit" thrown out in the error code, and so, as far as I know, it's better not to throw out system errors like this or "KeyboardInterrupt" yourself. and just exit the program when it hits. And I also wanted to make one remark, you had "SystemExit" thrown out in the error code, and so, as far as I know, it's better not to throw out system errors like this or "KeyboardInterrupt" yourself. and just exit the program when it hits. And I also wanted to make one remark, you had "SystemExit" thrown out in the error code, and so, as far as I know, it's better not to throw out system errors like this or "KeyboardInterrupt" yourself.

R
Ronald McDonald, 2020-03-11
@Zoominger

How durable are such cards, if you plan to record a bunch of files on them, which will then be played from the same cards?

Break sooner.
Stupidly take the most expensive and high class.

P
pfg21, 2020-03-12
@pfg21

it's best to set up automatic data backup to a cloud or nas thread. and backupers and storage places to hell.
there will be protection from the breakdown of the media and from the encryptor and from everything else.

D
Dmitry, 2020-03-11
@Tabletko

Get an external drive

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question